xref: /llvm-project/llvm/test/MC/AVR/dwarf-asm-no-code.s (revision 536ba6373f05fb1e9bc7199e301fbf4bc514006f)
1038e3b9fSDylan McKay// RUN: llvm-mc < %s -triple=avr -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp
2038e3b9fSDylan McKay// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF %s
3ecd6d725SFangrui Song// RUN: llvm-objdump -r %t | FileCheck --check-prefix=RELOC %s
4038e3b9fSDylan McKay
5038e3b9fSDylan McKay// If there is no code in an assembly file, no debug info is produced
6038e3b9fSDylan McKay
7038e3b9fSDylan McKay.section .data, "aw"
8038e3b9fSDylan McKaya:
9038e3b9fSDylan McKay.long 42
10038e3b9fSDylan McKay
11*536ba637SFangrui Song// DWARF: elf32-avr
12038e3b9fSDylan McKay// DWARF-NOT: contents:
13038e3b9fSDylan McKay// DWARF: .debug_line contents:
14038e3b9fSDylan McKay
15038e3b9fSDylan McKay// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_info]:
16038e3b9fSDylan McKay
17038e3b9fSDylan McKay// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_ranges]:
18038e3b9fSDylan McKay
19038e3b9fSDylan McKay// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_aranges]:
20