aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/types.c
blob: 208abce3d9642fbfaea170b03310147d6b4078eb (plain)
1
2
3
4
5
6
7
8
9
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)}}