1 ## Test that yaml2obj doesn't emit .debug_* sections when the "DWARF" entry is empty.
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: llvm-readelf -S %t.o | FileCheck %s
6 # CHECK: There are 3 section headers, starting at offset 0x58:
7 # CHECK: Section Headers:
8 # CHECK-NEXT: [Nr] Name Type Address Off Size ES Flg Lk Inf Al
9 # CHECK-NEXT: [ 0] NULL 0000000000000000 000000 000000 00 0 0 0
10 # CHECK-NEXT: [ 1] .strtab STRTAB 0000000000000000 000040 000001 00 0 0 1
11 # CHECK-NEXT: [ 2] .shstrtab STRTAB 0000000000000000 000041 000013 00 0 0 1