summaryrefslogtreecommitdiff
path: root/support/regression/qct/0049-inits.c
blob: eda8dcff5dcdfee8e126f2b8ae007a4fa84752b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14


struct S {int a; int b;};
struct S s = { .b = 2, .a = 1};

int
main()
{
	if(s.a != 1)
		return 1;
	if(s.b != 2)
		return 2;
	return 0;
}