[clang] [clang] Disallow VLA type compound literals (PR #91891)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon May 13 04:51:41 PDT 2024
================
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify -fblocks -pedantic %s
+// RUN: %clang_cc1 -fsyntax-only -verify -fblocks -pedantic -Wno-comment %s
----------------
AaronBallman wrote:
Ah! That's a perfectly fine reason to use `-Wno-comment` and you can leave the test as-is if you'd like, but another option is to use relative verify lines, as in:
```
bad_code();
// expected-warning at -1 {{you did the bad thing}}
// expected-note at -2 {{you should feel bad about that}}
```
https://github.com/llvm/llvm-project/pull/91891
More information about the cfe-commits
mailing list