aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr103770.c
blob: f7867d1284caff087c5431bb03afa40e6b4b5f2e (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
/* PR middle-end/103770 */
/* { dg-do compile } */
/* { dg-options "" } */

struct struct_s {
	void* ptr;
	void* ptr2;
	void* ptr3;
};

struct struct_s struct_create(int N, const long vla[N]);

void fun(int N)
{
	long vla[N];
	struct struct_s st = struct_create(N, vla);
}


extern _Complex float g(int N, int dims[N]);

void f(void)
{
 	int dims[1];
	_Complex float val = g(1, dims);
}