blob: 65f64546cc130925758e9f19400fe31cf998d008 [file] [log] [blame]
Daniel Dunbar030794b2010-07-18 21:16:10 +00001// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err
Daniel Dunbar3c802de2010-07-18 18:38:02 +00002// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
3
Daniel Dunbar6d8cf082010-07-18 18:47:21 +00004.macro .test0
5.endmacro
Daniel Dunbar3c802de2010-07-18 18:38:02 +00006
Daniel Dunbar6d8cf082010-07-18 18:47:21 +00007.macros_off
8// CHECK-ERRORS: 9:1: warning: ignoring directive for now
9.test0
10.macros_on
Daniel Dunbarc64a0d72010-07-18 18:54:11 +000011
Daniel Dunbar6d8cf082010-07-18 18:47:21 +000012.test0
13
14// CHECK-ERRORS: macro '.test0' is already defined
15.macro .test0
16.endmacro
17
18// CHECK-ERRORS: unexpected '.endmacro' in file
19.endmacro
20
21// CHECK-ERRORS: no matching '.endmacro' in definition
22.macro dummy
23