blob: 208abce3d9642fbfaea170b03310147d6b4078eb [file] [log] [blame]
Chris Lattnerf345acc2008-12-12 05:25:55 +00001// RUN: clang %s -pedantic -verify
2
3// rdar://6097662
4typedef int (*T)[2];
5restrict T x;
6
7typedef int *S[2];
8restrict S y; // expected-error {{restrict requires a pointer or reference ('S' is invalid)}}
9
10