Chris Lattner | f345acc | 2008-12-12 05:25:55 +0000 | [diff] [blame] | 1 | // RUN: clang %s -pedantic -verify |
2 | |||||
3 | // rdar://6097662 | ||||
4 | typedef int (*T)[2]; | ||||
5 | restrict T x; | ||||
6 | |||||
7 | typedef int *S[2]; | ||||
8 | restrict S y; // expected-error {{restrict requires a pointer or reference ('S' is invalid)}} | ||||
9 | |||||
10 |