• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llvm-mc -triple i386 -filetype asm -o /dev/null %s 2>&1 | FileCheck %s
2
3	.macro double first = -1, second = -1
4		# begin entry
5		.long \first
6		.long \second
7		# end entry
8	.endm
9
10	double 0, 1, 2
11# CHECK: error: too many positional arguments
12# CHECK: 	double 0, 1, 2
13# CHECK:                     ^
14
15	double second = 1, 2
16# CHECK: error: cannot mix positional and keyword arguments
17# CHECK: 	double second = 1, 2
18# CHECK:                           ^
19
20	double third = 0
21# CHECK: error: parameter named 'third' does not exist for macro 'double'
22# CHECK: 	double third = 0
23# CHECK:               ^
24
25