aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/memops-missed01.c
blob: fc616f1976a1e8ffcbeff795544fa34f50e81e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
void bar(int);

void foo(void)
{
	char buf[1] = { 42 };
	const char *p = buf;
	const char **q = &p;
	int ch = 0;
	switch (**q) {
	case 4:
		ch = 2;
	}
	bar(ch);
}

/*
 * check-name: memops-missed01
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: store\\.
 * check-output-excludes: load\\.
 */