Daniel Dunbar | 030794b | 2010-07-18 21:16:10 +0000 | [diff] [blame] | 1 | // RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err |
Daniel Dunbar | 3c802de | 2010-07-18 18:38:02 +0000 | [diff] [blame] | 2 | // RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err |
| 3 | |
Daniel Dunbar | 6d8cf08 | 2010-07-18 18:47:21 +0000 | [diff] [blame] | 4 | .macro .test0 |
| 5 | .endmacro |
Daniel Dunbar | 3c802de | 2010-07-18 18:38:02 +0000 | [diff] [blame] | 6 | |
Daniel Dunbar | 6d8cf08 | 2010-07-18 18:47:21 +0000 | [diff] [blame] | 7 | .macros_off |
Jim Grosbach | 686c018 | 2012-05-01 18:38:27 +0000 | [diff] [blame] | 8 | // CHECK-ERRORS: 9:1: error: unknown directive |
Daniel Dunbar | 6d8cf08 | 2010-07-18 18:47:21 +0000 | [diff] [blame] | 9 | .test0 |
| 10 | .macros_on |
Daniel Dunbar | c64a0d7 | 2010-07-18 18:54:11 +0000 | [diff] [blame] | 11 | |
Daniel Dunbar | 6d8cf08 | 2010-07-18 18:47:21 +0000 | [diff] [blame] | 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 | |