aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/deref-ptr-ptr.c
blob: 022595d78422373721f08fb9e39a5bbe9a107919 (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
char *foo(char **pfmt)
{
	return ++*pfmt;
}

/*
 * check-name: deref-ptr-ptr
 * check-command: test-linearize -m64 -Wno-decl $file
 * check-known-to-fail
 *
 * check-output-excludes: load[^.]
 * check-output-contains: load\.
 * check-output-excludes: store[^.]
 * check-output-contains: store\.
 *
 * check-output-start
foo:
.L0:
	<entry-point>
	load.64     %r2 <- 0[%arg1]
	add.64      %r3 <- %r2, $1
	store.64    %r3 -> 0[%arg1]
	ret.64      %r3


 * check-output-end
 */