aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Warray-parameter-7.c
blob: 4863045be78ac72c8340481527f2956c39543b13 (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
/* PR c/97206 - ICE in composite_type on declarations of a similar array types
   { dg-do compile }
   { dg-options "-Wall" } */

__attribute__((__access__(__write_only__, 1))) void
f1 (char* restrict);

void f1 (char*);

char a1[];
char a1[] = { };


void f2 (char[restrict]);
void f2 (char*);

char a2[];
char a2[] = { };


void f3 (char*);
void f3 (char[const]);

extern const char a3[];
extern const char a3[1];