hanchenye-llvm-project/clang/test/Parser/declarators.c

29 lines
476 B
C
Raw Normal View History

// RUN: clang %s -fsyntax-only -verify
2006-08-07 02:22:00 +08:00
extern int a1[];
2006-08-07 02:22:00 +08:00
void f0();
void f1(int [*]);
void f2(int [const *]);
void f3(int [volatile const*]);
int f4(*XX)(void); /* expected-error {{cannot return}} expected-error {{type specifier required}} */
2006-08-07 02:22:00 +08:00
char ((((*X))));
void (*signal(int, void (*)(int)))(int);
int a, ***C, * const D, b(int);
int *A;
struct str;
2006-08-13 02:40:31 +08:00
int test2(int *P, int A) {
struct str;
// Hard case for array decl, not Array[*].
2006-08-13 02:40:31 +08:00
int Array[*(int*)P+A];
}