blob: ad195053eb8e6d9738a8b32bd48a1a0051ffe822 [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
11// CHECK-ERRORS: 12:1: error: macros are not yet supported
12.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