blob: 8992359a79b6df34c5509cf26b936190a8566e64 [file] [log] [blame]
Kevin Enderbye858a652014-05-14 21:18:50 +00001RUN: llvm-nm %p/Inputs/macho-universal.x86_64.i386 \
2RUN: | FileCheck %s -check-prefix CHECK-OBJ
3RUN: llvm-nm %p/Inputs/macho-universal-archive.x86_64.i386 \
4RUN: | FileCheck %s -check-prefix CHECK-AR
Alexey Samsonove6388e62013-06-18 15:03:28 +00005
Kevin Enderby1983fcf2014-06-19 22:03:18 +00006CHECK-OBJ: macho-universal.x86_64.i386 (for architecture x86_64):
Kevin Enderbye858a652014-05-14 21:18:50 +00007CHECK-OBJ: 0000000100000f60 T _main
Kevin Enderby1983fcf2014-06-19 22:03:18 +00008CHECK-OBJ: macho-universal.x86_64.i386 (for architecture i386):
Kevin Enderbye858a652014-05-14 21:18:50 +00009CHECK-OBJ: 00001fa0 T _main
10
Kevin Enderby1983fcf2014-06-19 22:03:18 +000011CHECK-AR: macho-universal-archive.x86_64.i386(hello.o) (for architecture x86_64):
Kevin Enderbye858a652014-05-14 21:18:50 +000012CHECK-AR: 0000000000000068 s EH_frame0
13CHECK-AR: 000000000000003b s L_.str
14CHECK-AR: 0000000000000000 T _main
15CHECK-AR: 0000000000000080 S _main.eh
Kevin Enderby1b985af2014-05-20 23:04:47 +000016CHECK-AR: U _printf
Kevin Enderby1983fcf2014-06-19 22:03:18 +000017CHECK-AR: macho-universal-archive.x86_64.i386(foo.o) (for architecture i386):
Kevin Enderby1e1b9922014-06-19 22:49:21 +000018CHECK-AR: 00000008 D _bar
Kevin Enderbye858a652014-05-14 21:18:50 +000019CHECK-AR: 00000000 T _foo