1 # REQUIRES: system-linux
3 # RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-cross-reference-different-abbrev-dst.s -o %t.o
4 # RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-cross-reference-different-abbrev-src.s -o %t1.o
5 # RUN: %clang %cflags -gdwarf-4 %t.o %t1.o -o %t.exe
6 # RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections
7 # RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.exe | FileCheck --check-prefix=PRECHECK %s
8 # RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt | FileCheck --check-prefix=POSTCHECK %s
10 # This test checks that BOLT handles backward cross CU references for dwarf4
11 # when CUs are have different abbrev tables.
13 # PRECHECK: DW_TAG_compile_unit
14 # PRECHECK: DW_TAG_compile_unit
15 # PRECHECK: DW_AT_abstract_origin [DW_FORM_ref_addr]
16 # PRECHECK-SAME: "inlined"
17 # PRECHECK: DW_AT_abstract_origin [DW_FORM_ref_addr]
18 # PRECHECK-SAME: "var"
20 # POSTCHECK: DW_TAG_compile_unit
21 # POSTCHECK: DW_AT_abstract_origin [DW_FORM_ref_addr]
22 # POSTCHECK-SAME: "inlined"
23 # POSTCHECK: DW_AT_abstract_origin [DW_FORM_ref_addr]
24 # POSTCHECK-SAME: "var"
25 # POSTCHECK: DW_TAG_compile_unit