summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ARM
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2019-10-23 15:39:10 +0200
committerJoerg Sonnenberger <joerg@bec.de>2019-10-25 00:48:12 +0200
commit60b403e75cd25a0c76aaaf4e6b176923acf49443 (patch)
treec5e999e09a3dd0f8780b1df31f5b3f2634342874 /llvm/test/MC/ARM
parentbc58e0279b75402be1907b96fac89e12ed326590 (diff)
downloadbcm5719-llvm-60b403e75cd25a0c76aaaf4e6b176923acf49443.tar.gz
bcm5719-llvm-60b403e75cd25a0c76aaaf4e6b176923acf49443.zip
Always flush pending errors in MCAsmParser
This has become visible with the --fatal-warnings support.
Diffstat (limited to 'llvm/test/MC/ARM')
-rw-r--r--llvm/test/MC/ARM/arm-load-store-multiple-deprecated.s4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/MC/ARM/arm-load-store-multiple-deprecated.s b/llvm/test/MC/ARM/arm-load-store-multiple-deprecated.s
index 9354822bc41..e41aa279f39 100644
--- a/llvm/test/MC/ARM/arm-load-store-multiple-deprecated.s
+++ b/llvm/test/MC/ARM/arm-load-store-multiple-deprecated.s
@@ -1,5 +1,7 @@
@ RUN: llvm-mc -triple armv6t2-linux-eabi -filetype asm -o - %s 2>&1 \
@ RUN: | FileCheck %s
+@ RUN: not llvm-mc -triple armv6t2-linux-eabi --fatal-warnings -filetype asm -o - %s 2>&1 \
+@ RUN: | FileCheck -check-prefix CHECK-ERROR %s
@ RUN: not llvm-mc -triple armv7-linux-eabi -filetype asm -o - %s 2>&1 \
@ RUN: | FileCheck %s -check-prefix CHECK -check-prefix CHECK-V7
@@ -12,10 +14,12 @@
stm:
stm sp!, {r0, pc}
@ CHECK: warning: use of SP or PC in the list is deprecated
+@ CHECK-ERROR: error: use of SP or PC in the list is deprecated
@ CHECK: stm sp!, {r0, pc}
@ CHECK: ^
stm r0!, {r0, sp}
@ CHECK: warning: use of SP or PC in the list is deprecated
+@ CHECK-ERROR: error: use of SP or PC in the list is deprecated
@ CHECK: stm r0!, {r0, sp}
@ CHECK: ^
stm r1!, {r0, sp, pc}
OpenPOWER on IntegriCloud