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:
Chris Lattner 2008-12-12 05:25:55 +00:00
parent b4396f40a0
commit 54139445ba
1 changed files with 10 additions and 0 deletions

10
clang/test/Sema/types.c Normal file
View File

@ -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)}}