2015-06-24 18:20:30 +08:00
|
|
|
// RUN: llvm-mc %s -o %t -filetype=obj -triple=x86_64-pc-linux
|
|
|
|
// RUN: llvm-nm --print-size %t | FileCheck %s
|
2019-03-09 06:00:50 +08:00
|
|
|
// RUN: llvm-nm -f sysv %t | FileCheck -check-prefix=SYSV %s
|
2015-06-24 18:20:30 +08:00
|
|
|
|
2015-06-26 00:01:53 +08:00
|
|
|
// CHECK: 0000000000000000 ffffffffffffffff n a
|
|
|
|
// CHECK: 0000000000000000 0000000000000000 N b
|
2015-07-07 02:18:44 +08:00
|
|
|
// CHECK: 0000000000000004 0000000000000004 C c
|
2015-07-08 01:12:59 +08:00
|
|
|
// CHECK: ffffffffffffffff 0000000000000000 a d
|
2015-06-24 18:20:30 +08:00
|
|
|
|
2019-03-09 06:00:50 +08:00
|
|
|
// SYSV: a |0000000000000000| n | NOTYPE|ffffffffffffffff| |foo
|
|
|
|
// SYSV: b |0000000000000000| N | NOTYPE|0000000000000000| |foo
|
|
|
|
// SYSV: c |0000000000000004| C | OBJECT|0000000000000004| |*COM*
|
|
|
|
// SYSV: d |ffffffffffffffff| a | NOTYPE|0000000000000000| |*ABS*
|
|
|
|
|
2015-06-26 00:01:53 +08:00
|
|
|
.section foo
|
2015-06-24 18:20:30 +08:00
|
|
|
a:
|
|
|
|
.size a, 0xffffffffffffffff
|
2015-06-26 00:01:53 +08:00
|
|
|
|
|
|
|
.global b
|
|
|
|
b:
|
2015-07-07 02:18:44 +08:00
|
|
|
|
|
|
|
.comm c,4,8
|
2015-07-08 01:12:59 +08:00
|
|
|
|
|
|
|
d = 0xffffffffffffffff
|