1*9880d681SAndroid Build Coastguard Worker// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err 2*9880d681SAndroid Build Coastguard Worker// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker.macro .test0 5*9880d681SAndroid Build Coastguard Worker.endmacro 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Worker.macros_off 8*9880d681SAndroid Build Coastguard Worker// CHECK-ERRORS: 9:1: error: unknown directive 9*9880d681SAndroid Build Coastguard Worker.test0 10*9880d681SAndroid Build Coastguard Worker.macros_on 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Worker.test0 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker// CHECK-ERRORS: macro '.test0' is already defined 15*9880d681SAndroid Build Coastguard Worker.macro .test0 16*9880d681SAndroid Build Coastguard Worker.endmacro 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker// CHECK-ERRORS: unexpected '.endmacro' in file 19*9880d681SAndroid Build Coastguard Worker.endmacro 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Worker// CHECK-ERRORS: no matching '.endmacro' in definition 22*9880d681SAndroid Build Coastguard Worker.macro dummy 23*9880d681SAndroid Build Coastguard Worker 24