From 60b403e75cd25a0c76aaaf4e6b176923acf49443 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Wed, 23 Oct 2019 15:39:10 +0200 Subject: Always flush pending errors in MCAsmParser This has become visible with the --fatal-warnings support. --- llvm/test/MC/ARM/arm-load-store-multiple-deprecated.s | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/test/MC/ARM') 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} -- cgit v1.2.3