35 lines · plain
1## This test checks that debug info contained in the source file2## is fully copied to the destination file in case --no-garbage-collection3## is specified.4 5# RUN: yaml2obj %p/Inputs/common.yaml -o %t.o6 7## Check that the resulting file contains debug info from source file.8# RUN: llvm-dwarfutil --no-garbage-collection %t.o %t19# RUN: llvm-dwarfdump -a %t1 | FileCheck %s10 11## Check that the second copy matches with the first.12# RUN: llvm-dwarfutil --no-garbage-collection %t1 %t213# RUN: cmp %t1 %t214 15## Check that input file passed through <stdin> is correctly processesed.16# RUN: llvm-dwarfutil --no-garbage-collection - %t2 < %t117# RUN: cmp %t1 %t218 19# CHECK: .debug_abbrev20# CHECK: DW_TAG_compile_unit21# CHECK: .debug_info22# CHECK: DW_TAG_compile_unit23# CHECK: DW_AT_producer{{.*}}"by_hand"24# CHECK: DW_AT_language{{.*}}DW_LANG_C_plus_plus25# CHECK: DW_AT_name{{.*}}"CU1"26# CHECK: DW_TAG_class_type27# CHECK: DW_AT_name{{.*}}"class1"28# CHECK: DW_TAG_base_type29# CHECK: DW_AT_name{{.*}}"int"30# CHECK: DW_AT_name{{.*}}"char"31# CHECK: DW_AT_name{{.*}}"float"32# CHECK: DW_TAG_pointer_type33# CHECK: DW_TAG_variable34# CHECK: DW_AT_name{{.*}}"var1"35