blob: cac67aac23241ca5a5f86f25b5248d5b8794da8f [file] [log] [blame]
Daniel Dunbar6d8cf082010-07-18 18:47:21 +00001// RUN: not llvm-mc %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