1 // RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp
2 // RUN: llvm-dwarfdump %t | FileCheck -check-prefix DWARF %s
3 // RUN: llvm-objdump -r %t | FileCheck -check-prefix RELOC %s
5 // If there is no code in an assembly file, no debug info is produced
11 // DWARF: .debug_abbrev contents:
12 // DWARF-NEXT: < EMPTY >
14 // DWARF: .debug_info contents:
16 // DWARF: .debug_aranges contents:
18 // DWARF: .debug_line contents:
20 // DWARF: .debug_ranges contents:
23 // RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_info]:
25 // RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_ranges]:
27 // RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_aranges]: