aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/undef00.c
blob: 27f0aaa82aa8b7877d3d0f97c87608f2a2a92bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
static int badr(void)
{
	int *a;
	return *a;
}

static void badw(int v)
{
	int *a;
	*a = v;
}

/*
 * check-name: undef00
 * check-command: test-linearize -fdump-ir=mem2reg $file
 * check-known-to-fail
 * check-output-ignore
 * check-output-pattern(1): load\\.
 * check-output-pattern(1): load\\..*\\[UNDEF\\]
 * check-output-pattern(1): store\\.
 * check-output-pattern(1): store\\..*\\[UNDEF\\]
 */