[clang] [C23][Parser] Diagnostic for attribute declaration where statement is required (PR #146224)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 1 11:21:54 PDT 2025


================
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c2x -verify %s
----------------
AaronBallman wrote:

```suggestion
// RUN: %clang_cc1 -fsyntax-only -std=c23 -verify %s
```
Maybe rename the file to be `c23` instead of `c2x` as well?

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


More information about the cfe-commits mailing list