types.c revision d0344a4a6182ad704881cbbaa21cca14913d2296
1// 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' (aka 'int *[2]') is invalid)}}
9
10
11