1// RUN: llvm-mc %s -o %t -filetype=obj -triple=x86_64-pc-linux
2// RUN: llvm-nm --print-size %t | FileCheck %s
3// RUN: llvm-nm -f sysv %t | FileCheck -check-prefix=SYSV %s
4
5// CHECK: 0000000000000000 ffffffffffffffff n a
6// CHECK: 0000000000000000 0000000000000000 N b
7// CHECK: 0000000000000004 0000000000000004 C c
8// CHECK: ffffffffffffffff 0000000000000000 a d
9
10// SYSV: a                   |0000000000000000|   n  |            NOTYPE|ffffffffffffffff|     |foo
11// SYSV: b                   |0000000000000000|   N  |            NOTYPE|0000000000000000|     |foo
12// SYSV: c                   |0000000000000004|   C  |            OBJECT|0000000000000004|     |*COM*
13// SYSV: d                   |ffffffffffffffff|   a  |            NOTYPE|0000000000000000|     |*ABS*
14
15        .section foo
16a:
17        .size a, 0xffffffffffffffff
18
19        .global b
20b:
21
22        .comm c,4,8
23
24d = 0xffffffffffffffff
25