Author: Dmitri Gribenko
Date: 2023-08-09T16:07:41+02:00
New Revision: d64c363f35b98ab9750a3c3a5828d8df011a4a45

URL: 
https://github.com/llvm/llvm-project/commit/d64c363f35b98ab9750a3c3a5828d8df011a4a45
DIFF: 
https://github.com/llvm/llvm-project/commit/d64c363f35b98ab9750a3c3a5828d8df011a4a45.diff

LOG: [Clang][LoongArch] Add '-o /dev/null' to a test that does not care about 
the output

Tests should not write to the CWD because it might not be writeable.
Either use %t, or /dev/null if the test does not check the output.

Added: 
    

Modified: 
    clang/test/CodeGen/LoongArch/intrinsic-la32-error.c

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c 
b/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c
index db113a13eb5a95..026a2db0088920 100644
--- a/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c
+++ b/clang/test/CodeGen/LoongArch/intrinsic-la32-error.c
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 -triple loongarch32 -emit-llvm -S -verify %s -o /dev/null
-// RUN: not %clang_cc1 -triple loongarch32 -DFEATURE_CHECK -emit-llvm %s 2>&1 \
+// RUN: not %clang_cc1 -triple loongarch32 -DFEATURE_CHECK -emit-llvm %s -o 
/dev/null 2>&1 \
 // RUN:   | FileCheck %s
 
 #include <larchintrin.h>


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to