[clang] [Clang] allow restrict qualifier for array types with pointer types as element types (PR #120896)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 12 12:06:23 PST 2025


================
@@ -0,0 +1,25 @@
+// RUN: %clang_cc1 -std=c23 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=c17 -fsyntax-only -pedantic -verify=pedantic %s
+// RUN: %clang_cc1 -std=c2x -fsyntax-only -Wpre-c2x-compat -verify=c2x-compat %s
----------------
AaronBallman wrote:

```suggestion
// RUN: %clang_cc1 -std=c23 -fsyntax-only -verify %s
// RUN: %clang_cc1 -std=c17 -fsyntax-only -pedantic -verify=pedantic,expected %s
// RUN: %clang_cc1 -std=c2x -fsyntax-only -Wpre-c2x-compat -verify=c2x-compat,expected %s
```

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


More information about the cfe-commits mailing list