summaryrefslogtreecommitdiff
path: root/test/MC/ARM/dwarf-asm-no-code.s
blob: 7d06a4190091629ba183470fe83a1be0d5b37d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp
// RUN: llvm-dwarfdump %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: .debug_abbrev contents:
// DWARF-NEXT: < EMPTY >

// DWARF: .debug_info contents:

// DWARF: .debug_aranges contents:

// DWARF: .debug_line contents:

// DWARF: .debug_ranges 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]: