aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/struct.c
blob: 13962a8e6f597940954535c79879871388f226ae (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
28
29
30
31
32
struct s {
	int a;
	int b;
};

int f0(void)
{
	struct s s;

	s.a = 0;
	s.b = 1;

	return s.a;
}

int f1(void)
{
	struct s s;

	s.a = 1;
	s.b = 0;

	return s.b;
}

/*
 * check-name: struct
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-pattern(2): ret.32 *\\$0
 */