[clang] [Clang] allow restrict qualifier for array types with pointer types as element types (PR #120896)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 3 05:52:37 PST 2025
================
@@ -9,20 +9,20 @@ typedef int (*T)[2];
restrict T x;
typedef int *S[2];
-restrict S y; // expected-error {{restrict requires a pointer or reference ('S' (aka 'int *[2]') is invalid)}}
-
-
+restrict S y;
----------------
a-tarasyuk wrote:
@AaronBallman thanks for the feedback. I've added additional tests
https://github.com/llvm/llvm-project/pull/120896
More information about the cfe-commits
mailing list