1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/MC/AsmParser/directive_loc.s
Adrian Prantl b8d4a7c18d MCParser/Debug info: Accept line number 0 as a legitimate value, since
CFE produces it to indicate artificial locations.
c.f.: DWARF standard, Table 6.2:
line -- An unsigned integer indicating a source line number. Lines are numbered beginning at 1. The compiler may emit the value 0 in cases where an instruction cannot be attributed to any source line.

llvm-svn: 191471
2013-09-26 23:37:11 +00:00

10 lines
208 B
ArmAsm

# RUN: llvm-mc -triple i386-unknown-unknown %s
# FIXME: Actually test the output.
.file 1 "hello"
.loc 1
.loc 1 2
.loc 1 2 3
.loc 1 2 discriminator 1
.loc 1 0