forked from OSchip/llvm-project
Testcase for something that already works. Clang agrees with Comeau,
and this makes sense. likely a gcc bug that it doesn't diagnose the bad restrict. llvm-svn: 60923
This commit is contained in:
parent
b4396f40a0
commit
54139445ba
|
@ -0,0 +1,10 @@
|
|||
// RUN: clang %s -pedantic -verify
|
||||
|
||||
// rdar://6097662
|
||||
typedef int (*T)[2];
|
||||
restrict T x;
|
||||
|
||||
typedef int *S[2];
|
||||
restrict S y; // expected-error {{restrict requires a pointer or reference ('S' is invalid)}}
|
||||
|
||||
|
Loading…
Reference in New Issue