summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AVR/dwarf-asm-no-code.s
blob: cbe0bf49ad1e37cfd5ad5e3b79603df5a6983d27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: llvm-mc < %s -triple=avr -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp
// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF %s
// RUN: llvm-objdump -r %t | FileCheck -check-prefix RELOC %s

// If there is no code in an assembly file, no debug info is produced

.section .data, "aw"
a:
.long 42

// DWARF: ELF32-avr
// DWARF-NOT: contents:
// DWARF: .debug_line contents:

// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_info]:

// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_ranges]:

// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_aranges]:
OpenPOWER on IntegriCloud