2010-07-18 23:16:10 +02:00
|
|
|
// RUN: not llvm-mc -triple x86_64-apple-darwin10 %s 2> %t.err
|
2010-07-18 20:38:02 +02:00
|
|
|
// RUN: FileCheck --check-prefix=CHECK-ERRORS %s < %t.err
|
|
|
|
|
2010-07-18 20:47:21 +02:00
|
|
|
.macro .test0
|
|
|
|
.endmacro
|
|
|
|
|
2010-07-18 20:38:02 +02:00
|
|
|
.macros_off
|
2012-05-01 20:38:27 +02:00
|
|
|
// CHECK-ERRORS: 9:1: error: unknown directive
|
2010-07-18 20:47:21 +02:00
|
|
|
.test0
|
|
|
|
.macros_on
|
2010-07-18 20:54:11 +02:00
|
|
|
|
2010-07-18 20:47:21 +02: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-18 20:38:02 +02:00
|
|
|
|