Skip to content

Commit de0c6bd

Browse files
committed
Add -o /dev/null to make it explicit that we don't care about the
compiler output.
1 parent a46ef7d commit de0c6bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/test/Driver/aarch64-sve-vector-bits.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545

4646
// Error if using attribute without -msve-vector-bits
4747
// -----------------------------------------------------------------------------
48-
// RUN: not %clang -c %s -target aarch64-none-linux-gnu -march=armv8-a+sve \
49-
// RUN: 2>&1 | FileCheck --check-prefix=CHECK-NO-FLAG-ERROR %s
48+
// RUN: not %clang -c %s -o /dev/null -target aarch64-none-linux-gnu \
49+
// RUN: -march=armv8-a+sve 2>&1 | FileCheck --check-prefix=CHECK-NO-FLAG-ERROR %s
5050

5151
typedef __SVInt32_t svint32_t;
5252
typedef svint32_t noflag __attribute__((arm_sve_vector_bits(256)));
@@ -55,8 +55,8 @@ typedef svint32_t noflag __attribute__((arm_sve_vector_bits(256)));
5555

5656
// Error if attribute vector size != -msve-vector-bits
5757
// -----------------------------------------------------------------------------
58-
// RUN: not %clang -c %s -target aarch64-none-linux-gnu -march=armv8-a+sve \
59-
// RUN: -msve-vector-bits=128 2>&1 | FileCheck --check-prefix=CHECK-BAD-VECTOR-SIZE-ERROR %s
58+
// RUN: not %clang -c %s -o /dev/null -target aarch64-none-linux-gnu \
59+
// RUN: -march=armv8-a+sve -msve-vector-bits=128 2>&1 | FileCheck --check-prefix=CHECK-BAD-VECTOR-SIZE-ERROR %s
6060

6161
typedef svint32_t bad_vector_size __attribute__((arm_sve_vector_bits(256)));
6262

0 commit comments

Comments
 (0)