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