1 RUN: llvm-dwarfdump -debug-macro %p/Inputs/dwarfdump-macro.dwo \
2 RUN: | FileCheck %s -check-prefix TEST_MACINFODWO
4 ; This test verifies that llvm-dwarfdump tools know how to read .debug_macinfo.dwo
6 ; dwarfdump-macro.dwo has been generated from Inputs/dwarfdump-macro.cc
7 ; clang++ -c -O0 -DM3=Value3 -include dwarfdump-macro-cmd.h dwarfdump-macro.cc -fdebug-macro -gsplit-dwarf
9 TEST_MACINFODWO: .debug_macinfo.dwo contents:
10 TEST_MACINFODWO: DW_MACINFO_start_file - lineno: 0 filenum: 1
11 TEST_MACINFODWO: DW_MACINFO_start_file - lineno: 0 filenum: 2
12 TEST_MACINFODWO: DW_MACINFO_define - lineno: 1 macro: M4 Value4
13 TEST_MACINFODWO: DW_MACINFO_end_file
14 TEST_MACINFODWO: DW_MACINFO_define - lineno: 1 macro: M1 Value1
15 TEST_MACINFODWO: DW_MACINFO_start_file - lineno: 2 filenum: 3
16 TEST_MACINFODWO: DW_MACINFO_undef - lineno: 4 macro: M1
17 TEST_MACINFODWO: DW_MACINFO_define - lineno: 5 macro: M1 NewValue1
18 TEST_MACINFODWO: DW_MACINFO_end_file
19 TEST_MACINFODWO: DW_MACINFO_define - lineno: 3 macro: M2(x,y) ((x)+(y)* Value2)
20 TEST_MACINFODWO: DW_MACINFO_end_file