[clang] [Driver][BoundsSafety] Add -fbounds-safety-experimental flag (PR #70480)

Dan Liew via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 17:05:22 PDT 2023


================
@@ -0,0 +1,12 @@
+// This reports a warning to follow the default behavior of ClangAs.
+// RUN: %clang -fexperimental-bounds-safety -x assembler -c %s -o /dev/null 2>&1 | FileCheck -check-prefix WARN %s
----------------
delcypher wrote:

@rapidsna Maybe there should be a version of this part of the test that doesn't pass `-x <lang>` and instead passes to a `.s` file to make sure the right thing happens when in that case?

https://github.com/llvm/llvm-project/pull/70480


More information about the cfe-commits mailing list