diff options
Diffstat (limited to 'test/DebugInfo/X86/asm-macro-line-number.s')
-rw-r--r-- | test/DebugInfo/X86/asm-macro-line-number.s | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/DebugInfo/X86/asm-macro-line-number.s b/test/DebugInfo/X86/asm-macro-line-number.s new file mode 100644 index 0000000..0f51dbb --- /dev/null +++ b/test/DebugInfo/X86/asm-macro-line-number.s @@ -0,0 +1,20 @@ +# RUN: llvm-mc -g -triple i686-linux-gnu -filetype asm -o - %s | FileCheck %s + +# 1 "reduced.S" +# 1 "<built-in>" 1 +# 1 "reduced.S" 2 + + .macro return arg + movl %eax, \arg + retl + .endm + +function: + return 0 + +# CHECK: .file 2 "reduced.S" +# CHECK: .loc 2 8 0 +# CHECK: movl %eax, 0 +# CHECK: .loc 2 8 0 +# CHECK: retl + |