dwarfdump: Use the index to find the right abbrev offset in DWP files
[oota-llvm.git] / test / DebugInfo / dwarfdump-macho-universal.test
1 Reuse a test input from llvm-dsymutil, it's perfect for what we want to exercise
2 RUN: llvm-dwarfdump %S/Inputs/fat-test.o -debug-dump=info | FileCheck %s
3
4 CHECK: fat-test.o (x86_64):     file format Mach-O 64-bit x86-64
5 CHECK: DW_TAG_variable
6 CHECK-NOT: {{NULL|DW_TAG}}
7 CHECK: DW_AT_name {{.*}} "x86_64_var"
8
9 CHECK: fat-test.o (i386):       file format Mach-O 32-bit i386
10 CHECK: DW_TAG_variable
11 CHECK-NOT: {{NULL|DW_TAG}}
12 CHECK: DW_AT_name {{.*}} "i386_var"
13
14 CHECK: fat-test.o (x86_64h):    file format Mach-O 64-bit x86-64
15 CHECK: DW_TAG_variable
16 CHECK-NOT: {{NULL|DW_TAG}}
17 CHECK: DW_AT_name {{.*}} "x86_64h_var"