aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/AsmParser/macro-qualifier.s
blob: 7714e5cfa93693fe8ad86efd724eb381f1ffb6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: llvm-mc -triple i386 -o - %s | FileCheck %s

	.macro required parameter:req
		.long \parameter
	.endm

	required 0
# CHECK: .long 0

	.macro required_with_default parameter:req=0
		.long \parameter
	.endm

	required 1
# CHECK: .long 1