1# RUN: not llvm-mc -triple=x86_64 %s -o /dev/null 2>&1 | FileCheck %s --match-full-lines --strict-whitespace 2 3# CHECK:{{.*}}.s:[[#@LINE+3]]:22: error: macro 'dup_params' has multiple parameters named 'a' 4# CHECK-NEXT:.macro dup_params a a 5# CHECK-NEXT: ^ 6.macro dup_params a a 7# CHECK:{{.*}}.s:[[#@LINE+3]]:6: error: unexpected '.endm' in file, no current macro definition 8# CHECK-NEXT:.endm 9# CHECK-NEXT: ^ 10.endm 11 12# CHECK-NEXT:{{.*}}.s:[[#@LINE+6]]:14: error: too many positional arguments 13# CHECK-NEXT:one_arg 42, 42 14# CHECK-NEXT: ^ 15.macro one_arg bar 16 .long \bar 17.endm 18one_arg 42, 42 19 20# CHECK-NEXT:{{.*}}.s:[[#@LINE+6]]:10: error: Wrong number of arguments 21# CHECK-NEXT:no_arg 42 22# CHECK-NEXT: ^ 23.macro no_arg 24.ascii "$20" 25.endm 26no_arg 42 27 28.macro double first = -1, second = -1 29.long \first 30.long \second 31.endm 32 33# CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:14: error: too many positional arguments 34# CHECK-NEXT:double 0, 1, 2 35# CHECK-NEXT: ^ 36double 0, 1, 2 37 38# CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:20: error: cannot mix positional and keyword arguments 39# CHECK-NEXT:double second = 1, 2 40# CHECK-NEXT: ^ 41double second = 1, 2 42 43# CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:8: error: parameter named 'third' does not exist for macro 'double' 44# CHECK-NEXT:double third = 0 45# CHECK-NEXT: ^ 46double third = 0 47 48# CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:8: error: expected identifier in '.macro' directive 49# CHECK-NEXT:.macro 23 50# CHECK-NEXT: ^ 51.macro 23 52 53# CHECK-NEXT:{{.*}}.s:[[#@LINE+3]]:10: error: expected identifier in '.macro' directive 54# CHECK-NEXT:.macro a 23 55# CHECK-NEXT: ^ 56.macro a 23 57