Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-nm / tapi-files.test
blobbd3663a21861f52eb795de89412e17ed97368172
1 RUN: llvm-nm %p/Inputs/tapi-v1.tbd 2>&1\
2 RUN:          | FileCheck %s -check-prefix V1
4 RUN: llvm-nm %p/Inputs/tapi-v2.tbd \
5 RUN:          | FileCheck %s -check-prefix V2
7 RUN: llvm-nm --add-inlinedinfo --arch=x86_64 %p/Inputs/tapi-v3.tbd \
8 RUN:          | FileCheck %s -check-prefix V3
10 RUN: llvm-nm %p/Inputs/tapi-v4.tbd \
11 RUN:          | FileCheck %s -check-prefix V4
13 RUN: llvm-nm %p/Inputs/tapi-v4-watchos.tbd \
14 RUN:          | FileCheck %s -check-prefix V4-WATCH
16 RUN: llvm-nm %p/Inputs/tapi-v5.tbd \
17 RUN:          | FileCheck %s -check-prefix V5
19 V1: /u/l/libfoo.dylib (for architecture armv7):
20 V1-NEXT: 00000000 S _sym
21 V1: /u/l/libfoo.dylib (for architecture armv7s):
22 V1-NEXT: 00000000 S _sym
24 V2: /u/l/libfoo.dylib (for architecture armv7):
25 V2-NEXT: 00000000 S _sym1
26 V2-NEXT: 00000000 S _sym2
27 V2-NEXT: 00000000 S _sym3
28 V2: /u/l/libfoo.dylib (for architecture armv7s):
29 V2-NEXT: 00000000 S _sym1
30 V2-NEXT: 00000000 S _sym2
31 V2-NEXT: 00000000 S _sym3
32 V2: /u/l/libfoo.dylib (for architecture arm64):
33 V2-NEXT:          U _sym
34 V2-NEXT: 0000000000000000 S _sym1
35 V2-NEXT: 0000000000000000 S _sym2
36 V2-NEXT: 0000000000000000 S _sym3
38 V3: /usr/lib/libfoo.dylib (for architecture x86_64):
39 V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSBlockPredicate
40 V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSString
41 V3-NEXT: 0000000000000000 S _OBJC_EHTYPE_$_NSString
42 V3-NEXT: 0000000000000000 S _OBJC_IVAR_$_NSBlockPredicate._block
43 V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSBlockPredicate
44 V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSString
45 V3-NEXT: 0000000000000000 S _sym1
46 V3-NEXT: 0000000000000000 S _sym2
47 V3: /usr/lib/liba.dylib (for architecture x86_64):
48 V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSBlockPredicate
49 V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSString
50 V3-NEXT: 0000000000000000 S _OBJC_EHTYPE_$_NSString
51 V3-NEXT: 0000000000000000 S _OBJC_IVAR_$_NSBlockPredicate._block
52 V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSBlockPredicate
53 V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSString
54 V3-NEXT: 0000000000000000 S _sym1
55 V3-NEXT: 0000000000000000 S _sym2
57 V4: /u/l/libFoo.dylib (for architecture i386):
58 V4-NEXT: 00000000 S _sym1
59 V4-NEXT: 00000000 W _sym2
60 V4-NEXT: 00000000 S _sym3
61 V4-NEXT: 00000000 S _sym4
62 V4: /u/l/libFoo.dylib (for architecture x86_64):
63 V4-NEXT: 0000000000000000 S _sym3
64 V4-NEXT: 0000000000000000 S _sym4
66 V4-WATCH: /u/l/libFoo.dylib (for architecture armv7k)
67 V4-WATCH-NEXT: 00000000 S _sym1
68 V4-WATCH: /u/l/libFoo.dylib (for architecture arm64_32)
69 V4-WATCH-NEXT: 00000000 S _sym1
71 V5: /System/Library/Frameworks/Simple.framework/Versions/A/Simple (for architecture x86_64):
72 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Base
73 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Basic1
74 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Basic3
75 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Basic4
76 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Basic6
77 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_ExternalManagedObject
78 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_FooClass
79 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_SubClass
80 V5-NEXT: 0000000000000000 D _OBJC_EHTYPE_$_Base
81 V5-NEXT: 0000000000000000 D _OBJC_EHTYPE_$_SubClass
82 V5-NEXT: 0000000000000000 D _OBJC_IVAR_$_Basic4.ivar1
83 V5-NEXT: 0000000000000000 D _OBJC_IVAR_$_Basic4.ivar2
84 V5-NEXT: 0000000000000000 D _OBJC_IVAR_$_Basic4_2.ivar2
85 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Base
86 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Basic1
87 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Basic3
88 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Basic4
89 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Basic6
90 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_ExternalManagedObject
91 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_FooClass
92 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_SubClass
93 V5-NEXT: 0000000000000000 D _extraGlobalAPI1
94 V5-NEXT: 0000000000000000 D _privateGlobalVariable
95 V5-NEXT: 0000000000000000 T _publicGlobalFunc
96 V5-NEXT: 0000000000000000 D _publicGlobalVariable
97 V5-NEXT: 0000000000000000 W _weakPrivateGlobalVariable
98 V5-NEXT: 0000000000000000 W _weakPublicGlobalVariable
100 V5: /System/Library/Frameworks/Simple.framework/Versions/A/Simple (for architecture arm64):
101 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Base
102 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Basic1
103 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Basic3
104 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Basic4
105 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_Basic6
106 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_ExternalManagedObject
107 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_FooClass
108 V5-NEXT: 0000000000000000 D _OBJC_CLASS_$_SubClass
109 V5-NEXT: 0000000000000000 D _OBJC_EHTYPE_$_Base
110 V5-NEXT: 0000000000000000 D _OBJC_EHTYPE_$_SubClass
111 V5-NEXT: 0000000000000000 D _OBJC_IVAR_$_Basic4.ivar1
112 V5-NEXT: 0000000000000000 D _OBJC_IVAR_$_Basic4.ivar2
113 V5-NEXT: 0000000000000000 D _OBJC_IVAR_$_Basic4_2.ivar2
114 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Base
115 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Basic1
116 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Basic3
117 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Basic4
118 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_Basic6
119 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_ExternalManagedObject
120 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_FooClass
121 V5-NEXT: 0000000000000000 D _OBJC_METACLASS_$_SubClass
122 V5-NEXT: 0000000000000000 D _extraGlobalAPI1
123 V5-NEXT: 0000000000000000 D _privateGlobalVariable
124 V5-NEXT: 0000000000000000 T _publicGlobalFunc
125 V5-NEXT: 0000000000000000 D _publicGlobalVariable
126 V5-NEXT: 0000000000000000 W _weakPrivateGlobalVariable
127 V5-NEXT: 0000000000000000 W _weakPublicGlobalVariable