1# RUN: not llvm-mc -triple i386 -o /dev/null %s 2>&1 | FileCheck %s 2 3 .macro missing_qualifier parameter: 4 5# CHECK: error: missing parameter qualifier for 'parameter' in macro 'missing_qualifier' 6# CHECK: .macro missing_qualifier parameter: 7# CHECK: ^ 8 9 .macro non_identifier_qualifier parameter:0 10 11# CHECK: error: missing parameter qualifier for 'parameter' in macro 'non_identifier_qualifier' 12# CHECK: .macro non_identifier_qualifier parameter:0 13# CHECK: ^ 14 15 .macro invalid_qualifier parameter:invalid_qualifier 16 17# CHECK: error: invalid_qualifier is not a valid parameter qualifier for 'parameter' in macro 'invalid_qualifier' 18# CHECK: .macro invalid_qualifier parameter:invalid_qualifier 19# CHECK: ^ 20 21 .macro pointless_default parameter:req=default 22 .endm 23 24# CHECK: warning: pointless default value for required parameter 'parameter' in macro 'pointless_default' 25# CHECK: .macro pointless_default parameter:req=default 26# CHECK: ^ 27 28 .macro missing_required_parameter parameter:req 29 .endm 30 31 missing_required_parameter 32 33# CHECK: error: missing value for required parameter 'parameter' in macro 'missing_required_parameter' 34# CHECK: missing_required_parameter 35# CHECK: ^ 36 37 .macro missing_second_required_argument first=0 second:req 38 .endm 39 40 missing_second_required_argument 41 42# CHECK: error: missing value for required parameter 'second' in macro 'missing_second_required_argument' 43# CHECK: missing_second_required_argument 44# CHECK: ^ 45 46 .macro second_third_required first=0 second:req third:req 47 .endm 48 49 second_third_required 0 50 51# CHECK: error: missing value for required parameter 'second' in macro 'second_third_required' 52# CHECK: second_third_required 0 53# CHECK: ^ 54 55# CHECK: error: missing value for required parameter 'third' in macro 'second_third_required' 56# CHECK: second_third_required 0 57# CHECK: ^ 58 59 second_third_required third=3 first=1 60 61# CHECK: error: missing value for required parameter 'second' in macro 'second_third_required' 62# CHECK: second_third_required third=3 first=1 63# CHECK: ^ 64 65