1 # RUN: lld -flavor darwin -arch x86_64 -r -print_atoms %s -o %t | FileCheck %s
3 # Test parsing of tentative definitions, including size, scope, and alignment.
8 # __attribute__((visibility("hidden"))) int tentHidden;
9 # __attribute__((aligned(16))) int tent4_16;
10 # __attribute__((aligned(32))) long tent64_32[8];
16 flags: [ MH_SUBSECTIONS_VIA_SYMBOLS ]
23 attributes: [ S_ATTR_PURE_INSTRUCTIONS ]
24 address: 0x0000000000000000
30 value: 0x0000000000000004
35 value: 0x0000000000000004
40 value: 0x0000000000000040
45 value: 0x0000000000000008
48 scope: [ N_EXT, N_PEXT ]
50 value: 0x0000000000000004
54 # CHECK: defined-atoms:
56 # CHECK: scope: global
57 # CHECK: type: zero-fill
59 # CHECK: merge: as-tentative
60 # CHECK: alignment: 2^2
62 # CHECK: name: _tent4_16
63 # CHECK: scope: global
64 # CHECK: type: zero-fill
66 # CHECK: merge: as-tentative
67 # CHECK: alignment: 2^4
69 # CHECK: name: _tent64_32
70 # CHECK: scope: global
71 # CHECK: type: zero-fill
73 # CHECK: merge: as-tentative
74 # CHECK: alignment: 2^5
77 # CHECK: scope: global
78 # CHECK: type: zero-fill
80 # CHECK: merge: as-tentative
81 # CHECK: alignment: 2^3
83 # CHECK: name: _tentHidden
84 # CHECK: scope: hidden
85 # CHECK: type: zero-fill
87 # CHECK: merge: as-tentative
88 # CHECK: alignment: 2^2