blob: e00035c8e0fca1241bfa552d46d8e7cee8faa82d [file] [log] [blame]
Chris Lattnerbccfc152007-12-19 18:01:43 +00001// RUN: clang %s -fsyntax-only -verify
Chris Lattner4b009652007-07-25 00:24:17 +00002
3extern int a1[];
4
5void f0();
6void f1(int [*]);
7void f2(int [const *]);
8void f3(int [volatile const*]);
Chris Lattnere5db29f2008-01-31 06:10:07 +00009int f4(*XX)(void); /* expected-error {{cannot return}} expected-error {{type specifier required}} */
Chris Lattner4b009652007-07-25 00:24:17 +000010
11char ((((*X))));
12
13void (*signal(int, void (*)(int)))(int);
14
15int a, ***C, * const D, b(int);
16
17int *A;
18
19struct str;
20
21int 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