aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/undef00.c
blob: 20ea962ce8d411fecb73deeeb094ac04fc833dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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-output-ignore
 * check-output-pattern(1): load\\.
 * check-output-pattern(1): load\\..*\\[UNDEF\\]
 * check-output-pattern(1): store\\.
 * check-output-pattern(1): store\\..*\\[UNDEF\\]
 */