2010-07-19 05:16:10 +08:00
|
|
|
// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err
|
2010-07-19 02:38:02 +08:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
|
|
|
|
|
2010-07-19 02:47:21 +08:00
|
|
|
.macro .test0
|
|
|
|
.endmacro
|
|
|
|
|
2010-07-19 02:38:02 +08:00
|
|
|
.macros_off
|
2012-05-02 02:38:27 +08:00
|
|
|
// CHECK-ERRORS: 9:1: error: unknown directive
|
2010-07-19 02:47:21 +08:00
|
|
|
.test0
|
|
|
|
.macros_on
|
2010-07-19 02:54:11 +08:00
|
|
|
|
2010-07-19 02:47:21 +08:00
|
|
|
.test0
|
|
|
|
|
|
|
|
// CHECK-ERRORS: macro '.test0' is already defined
|
|
|
|
.macro .test0
|
|
|
|
.endmacro
|
|
|
|
|
|
|
|
// CHECK-ERRORS: unexpected '.endmacro' in file
|
|
|
|
.endmacro
|
|
|
|
|
|
|
|
// CHECK-ERRORS: no matching '.endmacro' in definition
|
|
|
|
.macro dummy
|
2010-07-19 02:38:02 +08:00
|
|
|
|