aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/inline_compound_literals.c
blob: fc223ff53c3d7c51dfa2312857d2f729daa27ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
struct foo {
	int x;
};

static inline void baz(void)
{
	(struct foo) { .x = 0 };
}

static void barf(void)
{
	baz();
}

static void foo(void)
{
	baz();
}

/*
 * check-name: inline compound literals
 */