Reid Spencer | 5f016e2 | 2007-07-11 17:01:13 +0000 | [diff] [blame] | 1 | // RUN: clang %s -fsyntax-only |
2 | |||||
3 | extern int a1[]; | ||||
4 | |||||
5 | void f0(); | ||||
6 | void f1(int [*]); | ||||
7 | void f2(int [const *]); | ||||
8 | void f3(int [volatile const*]); | ||||
9 | int f4(*XX)(void); | ||||
10 | |||||
11 | char ((((*X)))); | ||||
12 | |||||
13 | void (*signal(int, void (*)(int)))(int); | ||||
14 | |||||
15 | int a, ***C, * const D, b(int); | ||||
16 | |||||
17 | int *A; | ||||
18 | |||||
19 | struct str; | ||||
20 | |||||
21 | int test2(int *P, int A) { | ||||
22 | struct str; | ||||
23 | |||||
24 | // Hard case for array decl, not Array[*]. | ||||
25 | int Array[*(int*)P+A]; | ||||
26 | } | ||||
27 | |||||
28 |