[clang] 7af24c7 - Disable writing an output file to the source directory in Driver test

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 04:19:53 PDT 2023


Author: Benjamin Kramer
Date: 2023-09-15T13:19:13+02:00
New Revision: 7af24c765d0255e6fa4a9f564e0d3699e0cfa107

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

LOG: Disable writing an output file to the source directory in Driver test

Added: 
    

Modified: 
    clang/test/Driver/omit-rtti-component-without-no-rtti.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/omit-rtti-component-without-no-rtti.cpp b/clang/test/Driver/omit-rtti-component-without-no-rtti.cpp
index 2108c7dea7f3386..87e5bba08368ad7 100644
--- a/clang/test/Driver/omit-rtti-component-without-no-rtti.cpp
+++ b/clang/test/Driver/omit-rtti-component-without-no-rtti.cpp
@@ -1,12 +1,12 @@
 /// Ensure that -fexperimental-omit-vtable-rtti is only allowed if rtti is
 /// disabled.
 
-// RUN: not %clang -c -Xclang -fexperimental-omit-vtable-rtti -frtti %s 2>&1 | FileCheck -check-prefix=ERROR %s
-// RUN: not %clang -c -Xclang -fexperimental-omit-vtable-rtti -fno-rtti -frtti %s 2>&1 | FileCheck -check-prefix=ERROR %s
+// RUN: not %clang -fsyntax-only -Xclang -fexperimental-omit-vtable-rtti -frtti %s 2>&1 | FileCheck -check-prefix=ERROR %s
+// RUN: not %clang -fsyntax-only -Xclang -fexperimental-omit-vtable-rtti -fno-rtti -frtti %s 2>&1 | FileCheck -check-prefix=ERROR %s
 
-// RUN: %clang -c -Xclang -fexperimental-omit-vtable-rtti -fno-rtti %s 2>&1 | FileCheck -check-prefix=NO-ERROR %s --allow-empty
-// RUN: %clang -c -Xclang -fno-experimental-omit-vtable-rtti -frtti %s 2>&1 | FileCheck -check-prefix=NO-ERROR %s --allow-empty
-// RUN: %clang -c -Xclang -fexperimental-omit-vtable-rtti -Xclang -fno-experimental-omit-vtable-rtti -frtti %s 2>&1 | FileCheck -check-prefix=NO-ERROR %s --allow-empty
+// RUN: %clang -fsyntax-only -Xclang -fexperimental-omit-vtable-rtti -fno-rtti %s 2>&1 | FileCheck -check-prefix=NO-ERROR %s --allow-empty
+// RUN: %clang -fsyntax-only -Xclang -fno-experimental-omit-vtable-rtti -frtti %s 2>&1 | FileCheck -check-prefix=NO-ERROR %s --allow-empty
+// RUN: %clang -fsyntax-only -Xclang -fexperimental-omit-vtable-rtti -Xclang -fno-experimental-omit-vtable-rtti -frtti %s 2>&1 | FileCheck -check-prefix=NO-ERROR %s --allow-empty
 
 // ERROR: -fexperimental-omit-vtable-rtti call only be used with -fno-rtti
 // NO-ERROR-NOT: -fexperimental-omit-vtable-rtti call only be used with -fno-rtti


        


More information about the cfe-commits mailing list