diff options
Diffstat (limited to 'test/DebugInfo/X86/arange.ll')
-rw-r--r-- | test/DebugInfo/X86/arange.ll | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/DebugInfo/X86/arange.ll b/test/DebugInfo/X86/arange.ll index fd0d0a3e08..819f9863bc 100644 --- a/test/DebugInfo/X86/arange.ll +++ b/test/DebugInfo/X86/arange.ll @@ -1,6 +1,7 @@ ; REQUIRES: object-emission ; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s | llvm-dwarfdump -debug-dump=aranges - | FileCheck %s +; RUN: llc -mtriple=x86_64-linux -O0 -filetype=obj < %s | llvm-readobj --relocations - | FileCheck --check-prefix=OBJ %s ; extern int i; ; template<int *x> @@ -15,6 +16,10 @@ ; CHECK-NEXT: [0x ; CHECK-NOT: [0x +; Check that we have a relocation back to the debug_info section from the debug_aranges section +; OBJ: debug_aranges +; OBJ-NEXT: R_X86_64_32 .debug_info 0x0 + %struct.foo = type { i8 } @f = global %struct.foo zeroinitializer, align 1 |