1int ladder02(int *ptr, int p, int x)
2{
3	*ptr = x++;
4	if (p)
5		goto l11;
6	else
7		goto l12;
8l11:
9	*ptr = x++;
10	goto l20;
11l12:
12	*ptr = x++;
13	goto l20;
14l20:
15	*ptr = x++;
16	return *ptr;
17}
18
19/*
20 * check-name: kill-dead-store-parent2
21 * check-command: test-linearize -Wno-decl $file
22 *
23 * check-output-ignore
24 * check-output-pattern(1): store
25 */
26