summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/declarators.c
blob: e00035c8e0fca1241bfa552d46d8e7cee8faa82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// RUN: clang %s -fsyntax-only -verify

extern int a1[];

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}} */

char ((((*X))));

void (*signal(int, void (*)(int)))(int);

int a, ***C, * const D, b(int);

int *A;

struct str;

int test2(int *P, int A) {
  struct str;

  // Hard case for array decl, not Array[*].
  int Array[*(int*)P+A];
}


OpenPOWER on IntegriCloud