38 lines · plain
1## This test checks that the debug info contained in the source file2## is fully copied to the destination file when the source and3## destination are the same file.4 5## Check --no-separate-debug-file.6# RUN: yaml2obj %p/Inputs/common.yaml -o %t17# RUN: llvm-dwarfutil --no-separate-debug-file %t1 %t18# RUN: llvm-dwarfdump -a %t1 | FileCheck --check-prefix=CHECK-DEBUG %s9 10## Check --separate-debug-file.11# RUN: yaml2obj %p/Inputs/common.yaml -o %t112# RUN: llvm-dwarfutil --separate-debug-file %t1 %t113# RUN: llvm-objdump --headers %t1 | FileCheck --check-prefix=CHECK-NON-DEBUG %s14# RUN: llvm-dwarfdump -a %t1.debug | FileCheck --check-prefix=CHECK-DEBUG %s15 16# CHECK-NON-DEBUG-NOT: .debug_abbrev17# CHECK-NON-DEBUG-NOT: .debug_info18# CHECK-NON-DEBUG: .gnu_debuglink19# CHECK-NON-DEBUG-NOT: .debug_abbrev20# CHECK-NON-DEBUG-NOT: .debug_info21 22# CHECK-DEBUG: .debug_abbrev23# CHECK-DEBUG: DW_TAG_compile_unit24# CHECK-DEBUG: .debug_info25# CHECK-DEBUG: DW_TAG_compile_unit26# CHECK-DEBUG: DW_AT_producer{{.*}}"by_hand"27# CHECK-DEBUG: DW_AT_language{{.*}}DW_LANG_C_plus_plus28# CHECK-DEBUG: DW_AT_name{{.*}}"CU1"29# CHECK-DEBUG: DW_TAG_class_type30# CHECK-DEBUG: DW_AT_name{{.*}}"class1"31# CHECK-DEBUG: DW_TAG_base_type32# CHECK-DEBUG: DW_AT_name{{.*}}"int"33# CHECK-DEBUG: DW_AT_name{{.*}}"char"34# CHECK-DEBUG: DW_AT_name{{.*}}"float"35# CHECK-DEBUG: DW_TAG_pointer_type36# CHECK-DEBUG: DW_TAG_variable37# CHECK-DEBUG: DW_AT_name{{.*}}"var1"38