blob: 75aaac036ed1080f4217ce88ed3f3f0fda28d4ac [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
Jim Grosbach686c0182012-05-01 18:38:27 +00008// CHECK-ERRORS: 9:1: error: unknown directive
Daniel Dunbar6d8cf082010-07-18 18:47:21 +00009.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