Author: David Blaikie
Date: 2022-12-16T23:39:28Z
New Revision: 7a91e00d915c638bfb4864826bc445211e0e41d7

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

LOG: Ensure clang test doesn't write out to the source directory

Added: 
    

Modified: 
    clang/test/Misc/warn-not-error-Xfoo.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Misc/warn-not-error-Xfoo.c 
b/clang/test/Misc/warn-not-error-Xfoo.c
index 49a594d4c2f29..54d97c618cddf 100644
--- a/clang/test/Misc/warn-not-error-Xfoo.c
+++ b/clang/test/Misc/warn-not-error-Xfoo.c
@@ -1,5 +1,5 @@
-// RUN: %clang -c -Xfoo %s 2>&1 | FileCheck 
--check-prefix=CHECK_STANDALONE_FOO %s
-// RUN: %clang -c -Xfoo=bar %s 2>&1 | FileCheck 
--check-prefix=CHECK_JOINED_FOO %s
+// RUN: %clang -c %s -o /dev/null -Xfoo < %s 2>&1 | FileCheck 
--check-prefix=CHECK_STANDALONE_FOO %s
+// RUN: %clang -c %s -o /dev/null -Xfoo=bar 2>&1 | FileCheck 
--check-prefix=CHECK_JOINED_FOO %s
 
 // This test ensures that we only warn on -X<unknown> and -X<unknown=value>
 // in case it is used downstream. If we error, we can't ignore it and some


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

Reply via email to