xref: /llvm-project/llvm/test/tools/llvm-objdump/MachO/archive-headers.test (revision 6ed18eaa777beac510272c73e3889d9ec54ad341)
1*6ed18eaaSFangrui SongRUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch all \
2d3851332SFangrui SongRUN: | FileCheck %s
3*6ed18eaaSFangrui SongRUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch all --archive-member-offsets \
4d3851332SFangrui SongRUN: | FileCheck %s -check-prefix=OFFSETS
5*6ed18eaaSFangrui SongRUN: llvm-objdump %p/Inputs/macho-universal-archive.x86_64.i386 --macho --archive-headers --arch all --non-verbose \
6d3851332SFangrui SongRUN: | FileCheck %s -check-prefix=NON-VERBOSE
7d3851332SFangrui Song
8d3851332SFangrui Song# Note the date as printed by ctime(3) is time zone dependent and not checked.
9d3851332SFangrui SongCHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
10d3851332SFangrui SongCHECK: -rw-r--r--124/11     44 {{.*}} __.SYMDEF SORTED
11d3851332SFangrui SongCHECK: -rw-r--r--124/0     860 {{.*}} hello.o
12d3851332SFangrui SongCHECK: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
13d3851332SFangrui SongCHECK: -rw-r--r--124/11     60 {{.*}} __.SYMDEF SORTED
14d3851332SFangrui SongCHECK: -rw-r--r--124/0     388 {{.*}} foo.o
15d3851332SFangrui Song
16d3851332SFangrui SongOFFSETS: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
17d3851332SFangrui SongOFFSETS: 8	-rw-r--r--124/11     44 {{.*}} __.SYMDEF SORTED
18d3851332SFangrui SongOFFSETS: 112	-rw-r--r--124/0     860 {{.*}} hello.o
19d3851332SFangrui SongOFFSETS: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
20d3851332SFangrui SongOFFSETS: 8	-rw-r--r--124/11     60 {{.*}} __.SYMDEF SORTED
21d3851332SFangrui SongOFFSETS: 128	-rw-r--r--124/0     388 {{.*}} foo.o
22d3851332SFangrui Song
23d3851332SFangrui SongNON-VERBOSE: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture x86_64)
24d3851332SFangrui SongNON-VERBOSE: 0100644 124/11     44 1399572709 #1/20
25d3851332SFangrui SongNON-VERBOSE: 0100644 124/0     860 1399501499 #1/12
26d3851332SFangrui SongNON-VERBOSE: Archive : {{.*}}/macho-universal-archive.x86_64.i386 (architecture i386)
27d3851332SFangrui SongNON-VERBOSE: 0100644 124/11     60 1399572709 #1/20
28d3851332SFangrui SongNON-VERBOSE: 0100644 124/0     388 1399572697 #1/12
29