================
@@ -0,0 +1,25 @@
+// RUN: not %clang -fbounds-safety-experimental -x c++ %s 2>&1 | FileCheck 
-check-prefix ERR %s
+
+// RUN: not %clang -fbounds-safety-experimental -x objective-c %s 2>&1 | 
FileCheck -check-prefix ERR %s
+
+// RUN: not %clang -fbounds-safety-experimental -x objective-c++ %s 2>&1 | 
FileCheck -check-prefix ERR %s
+
+// RUN: not %clang -fbounds-safety-experimental -x cuda -nocudalib -nocudainc 
%s 2>&1 | FileCheck -check-prefix ERR %s
+
+// RUN: not %clang -fbounds-safety-experimental -x renderscript %s 2>&1 | 
FileCheck -check-prefix ERR %s
+
+// RUN: not %clang_cc1 -fbounds-safety-experimental -x c++ %s 2>&1 | FileCheck 
-check-prefix ERR %s
+
+// RUN: not %clang_cc1 -fbounds-safety-experimental -x objective-c %s 2>&1 | 
FileCheck -check-prefix ERR %s
+
+// RUN: not %clang_cc1 -fbounds-safety-experimental -x objective-c++ %s 2>&1 | 
FileCheck -check-prefix ERR %s
+
+// RUN: not %clang_cc1 -fbounds-safety-experimental -x cuda %s 2>&1 | 
FileCheck -check-prefix ERR %s
+
+// RUN: not %clang_cc1 -fbounds-safety-experimental -x renderscript %s 2>&1 | 
FileCheck -check-prefix ERR %s
----------------
nickdesaulniers wrote:

ah, makes sense, consider adding that as a comment

https://github.com/llvm/llvm-project/pull/70480
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to