aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/c99struct1.C
blob: 93e84b460393171b03b449ae2b5ad8a1adaa674a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options "" }
// C99 anon struct variable with array accesses.

struct s { int a[1]; };

void
foo5 (void)
{
	  ((struct s) { { 0 } }).a[0] = 1;
}