90 lines · plain
1// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --symbols - | FileCheck %s2 3.zerofill __DATA,__bss,_fill0,1,04.zerofill __DATA,__bss,_a,4,25.zerofill __DATA,__bss,_fill1,1,06.zerofill __DATA,__bss,_b,4,37.zerofill __DATA,__bss,_fill2,1,08.zerofill __DATA,__bss,_c,4,49.zerofill __DATA,__bss,_fill3,1,010.zerofill __DATA,__bss,_d,4,511 12// CHECK: File: <stdin>13// CHECK: Format: Mach-O 32-bit i38614// CHECK: Arch: i38615// CHECK: AddressSize: 32bit16// CHECK: Symbols [17// CHECK: Symbol {18// CHECK: Name: _fill0 (34)19// CHECK: Type: Section (0xE)20// CHECK: Section: __bss (0x2)21// CHECK: RefType: UndefinedNonLazy (0x0)22// CHECK: Flags [ (0x0)23// CHECK: ]24// CHECK: Value: 0x025// CHECK: }26// CHECK: Symbol {27// CHECK: Name: _a (10)28// CHECK: Type: Section (0xE)29// CHECK: Section: __bss (0x2)30// CHECK: RefType: UndefinedNonLazy (0x0)31// CHECK: Flags [ (0x0)32// CHECK: ]33// CHECK: Value: 0x434// CHECK: }35// CHECK: Symbol {36// CHECK: Name: _fill1 (27)37// CHECK: Type: Section (0xE)38// CHECK: Section: __bss (0x2)39// CHECK: RefType: UndefinedNonLazy (0x0)40// CHECK: Flags [ (0x0)41// CHECK: ]42// CHECK: Value: 0x843// CHECK: }44// CHECK: Symbol {45// CHECK: Name: _b (7)46// CHECK: Type: Section (0xE)47// CHECK: Section: __bss (0x2)48// CHECK: RefType: UndefinedNonLazy (0x0)49// CHECK: Flags [ (0x0)50// CHECK: ]51// CHECK: Value: 0x1052// CHECK: }53// CHECK: Symbol {54// CHECK: Name: _fill2 (20)55// CHECK: Type: Section (0xE)56// CHECK: Section: __bss (0x2)57// CHECK: RefType: UndefinedNonLazy (0x0)58// CHECK: Flags [ (0x0)59// CHECK: ]60// CHECK: Value: 0x1461// CHECK: }62// CHECK: Symbol {63// CHECK: Name: _c (4)64// CHECK: Type: Section (0xE)65// CHECK: Section: __bss (0x2)66// CHECK: RefType: UndefinedNonLazy (0x0)67// CHECK: Flags [ (0x0)68// CHECK: ]69// CHECK: Value: 0x2070// CHECK: }71// CHECK: Symbol {72// CHECK: Name: _fill3 (13)73// CHECK: Type: Section (0xE)74// CHECK: Section: __bss (0x2)75// CHECK: RefType: UndefinedNonLazy (0x0)76// CHECK: Flags [ (0x0)77// CHECK: ]78// CHECK: Value: 0x2479// CHECK: }80// CHECK: Symbol {81// CHECK: Name: _d (1)82// CHECK: Type: Section (0xE)83// CHECK: Section: __bss (0x2)84// CHECK: RefType: UndefinedNonLazy (0x0)85// CHECK: Flags [ (0x0)86// CHECK: ]87// CHECK: Value: 0x4088// CHECK: }89// CHECK: ]90