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 V1: /u/l/libfoo.dylib (for architecture armv7):
17 V1-NEXT: 00000000 S _sym
18 V1: /u/l/libfoo.dylib (for architecture armv7s):
19 V1-NEXT: 00000000 S _sym
21 V2: /u/l/libfoo.dylib (for architecture armv7):
22 V2-NEXT: 00000000 S _sym1
23 V2-NEXT: 00000000 S _sym2
24 V2-NEXT: 00000000 S _sym3
25 V2: /u/l/libfoo.dylib (for architecture armv7s):
26 V2-NEXT: 00000000 S _sym1
27 V2-NEXT: 00000000 S _sym2
28 V2-NEXT: 00000000 S _sym3
29 V2: /u/l/libfoo.dylib (for architecture arm64):
31 V2-NEXT: 0000000000000000 S _sym1
32 V2-NEXT: 0000000000000000 S _sym2
33 V2-NEXT: 0000000000000000 S _sym3
35 V3: /usr/lib/libfoo.dylib (for architecture x86_64):
36 V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSBlockPredicate
37 V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSString
38 V3-NEXT: 0000000000000000 S _OBJC_EHTYPE_$_NSString
39 V3-NEXT: 0000000000000000 S _OBJC_IVAR_$_NSBlockPredicate._block
40 V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSBlockPredicate
41 V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSString
42 V3-NEXT: 0000000000000000 S _sym1
43 V3-NEXT: 0000000000000000 S _sym2
44 V3: /usr/lib/liba.dylib (for architecture x86_64):
45 V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSBlockPredicate
46 V3-NEXT: 0000000000000000 S _OBJC_CLASS_$_NSString
47 V3-NEXT: 0000000000000000 S _OBJC_EHTYPE_$_NSString
48 V3-NEXT: 0000000000000000 S _OBJC_IVAR_$_NSBlockPredicate._block
49 V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSBlockPredicate
50 V3-NEXT: 0000000000000000 S _OBJC_METACLASS_$_NSString
51 V3-NEXT: 0000000000000000 S _sym1
52 V3-NEXT: 0000000000000000 S _sym2
54 V4: /u/l/libFoo.dylib (for architecture i386):
55 V4-NEXT: 00000000 S _sym1
56 V4-NEXT: 00000000 W _sym2
57 V4-NEXT: 00000000 S _sym3
58 V4-NEXT: 00000000 S _sym4
59 V4: /u/l/libFoo.dylib (for architecture x86_64):
60 V4-NEXT: 0000000000000000 S _sym3
61 V4-NEXT: 0000000000000000 S _sym4
63 V4-WATCH: /u/l/libFoo.dylib (for architecture armv7k)
64 V4-WATCH-NEXT: 00000000 S _sym1
65 V4-WATCH: /u/l/libFoo.dylib (for architecture arm64_32)
66 V4-WATCH-NEXT: 00000000 S _sym1