mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 05:06:45 +00:00
6631253907
The .error directive is similar to .err in that it will halt assembly if it is evaluated for assembly. However, it permits a user supplied message to be rendered. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201999 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
645 B
ArmAsm
31 lines
645 B
ArmAsm
// RUN: not llvm-mc -triple i386 %s 2>&1 | FileCheck %s
|
|
|
|
.err
|
|
// CHECK: error: .err encountered
|
|
// CHECK-NEXT: .err
|
|
// CHECK-NEXT: ^
|
|
|
|
.ifc a,a
|
|
.err
|
|
.endif
|
|
// CHECK: error: .err encountered
|
|
// CHECK-NEXT: .err
|
|
// CHECK-NEXT: ^
|
|
|
|
.ifnc a,a
|
|
.err
|
|
.endif
|
|
// CHECK-NOT: error: .err encountered
|
|
|
|
.error "This is my error. There are many like it, but this one is mine."
|
|
// CHECK: error: This is my error. There are many like it, but this one is mine.
|
|
|
|
.ifc one, two
|
|
.error "My error is my best friend."
|
|
.endif
|
|
// CHECK-NOT: error: My error is my best friend.
|
|
|
|
.error
|
|
// CHECK: error: .error directive invoked in source file
|
|
|