aboutsummaryrefslogtreecommitdiffstats
path: root/test/DebugInfo/X86/asm-macro-line-number.s
blob: 0f51dbb6440a22cddc6039969f58c4bc7bba884f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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