smatch_data/kernel.unreachable.ignore: add BUG(), WARN_ON() and others
[smatch.git] / validation / linear / deref-ptr-ptr.c
blob1342990c4afa893e1b6eeecf8ce24b46c94937aa
1 char *foo(char **pfmt)
3 return ++*pfmt;
6 /*
7 * check-name: deref-ptr-ptr
8 * check-command: test-linearize -m64 -Wno-decl $file
9 * check-assert: sizeof(void *) == 8
11 * check-output-excludes: load[^.]
12 * check-output-contains: load\\.
13 * check-output-excludes: store[^.]
14 * check-output-contains: store\\.
16 * check-output-start
17 foo:
18 .L0:
19 <entry-point>
20 load.64 %r2 <- 0[%arg1]
21 add.64 %r3 <- %r2, $1
22 store.64 %r3 -> 0[%arg1]
23 ret.64 %r3
26 * check-output-end