1## Test that yaml2obj doesn't emit .debug_* sections when the "DWARF" entry is empty.
2
3# RUN: yaml2obj %s -o %t.o
4# RUN: llvm-readelf -S %t.o | FileCheck %s
5
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
12
13--- !ELF
14FileHeader:
15  Class: ELFCLASS64
16  Data:  ELFDATA2LSB
17  Type:  ET_EXEC
18DWARF:
19