From de0c6bd56b41081f1b89a1c7a0bf2597fd6d0104 Mon Sep 17 00:00:00 2001 From: Adrian Kuegel Date: Fri, 17 Jul 2020 14:21:13 +0200 Subject: [PATCH] Add -o /dev/null to make it explicit that we don't care about the compiler output. --- clang/test/Driver/aarch64-sve-vector-bits.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/test/Driver/aarch64-sve-vector-bits.c b/clang/test/Driver/aarch64-sve-vector-bits.c index b7138d4a0772..c3d0d05bb9b6 100644 --- a/clang/test/Driver/aarch64-sve-vector-bits.c +++ b/clang/test/Driver/aarch64-sve-vector-bits.c @@ -45,8 +45,8 @@ // Error if using attribute without -msve-vector-bits // ----------------------------------------------------------------------------- -// RUN: not %clang -c %s -target aarch64-none-linux-gnu -march=armv8-a+sve \ -// RUN: 2>&1 | FileCheck --check-prefix=CHECK-NO-FLAG-ERROR %s +// RUN: not %clang -c %s -o /dev/null -target aarch64-none-linux-gnu \ +// RUN: -march=armv8-a+sve 2>&1 | FileCheck --check-prefix=CHECK-NO-FLAG-ERROR %s typedef __SVInt32_t svint32_t; typedef svint32_t noflag __attribute__((arm_sve_vector_bits(256))); @@ -55,8 +55,8 @@ typedef svint32_t noflag __attribute__((arm_sve_vector_bits(256))); // Error if attribute vector size != -msve-vector-bits // ----------------------------------------------------------------------------- -// RUN: not %clang -c %s -target aarch64-none-linux-gnu -march=armv8-a+sve \ -// RUN: -msve-vector-bits=128 2>&1 | FileCheck --check-prefix=CHECK-BAD-VECTOR-SIZE-ERROR %s +// RUN: not %clang -c %s -o /dev/null -target aarch64-none-linux-gnu \ +// RUN: -march=armv8-a+sve -msve-vector-bits=128 2>&1 | FileCheck --check-prefix=CHECK-BAD-VECTOR-SIZE-ERROR %s typedef svint32_t bad_vector_size __attribute__((arm_sve_vector_bits(256)));