function_hooks: update comment explaining various function hooks
[smatch.git] / validation / mem2reg / init-local-array.c
blob639a74f100d946dbe3831434e85ad48decac0ee0
1 static int array(void)
3 int a[2];
5 a[1] = 1;
6 a[0] = 0;
7 return a[1];
10 static int sarray(void)
12 struct {
13 int a[2];
14 } s;
16 s.a[1] = 1;
17 s.a[0] = 0;
18 return s.a[1];
22 * check-name: init local array
23 * check-command: test-linearize $file
24 * check-output-ignore
25 * check-output-excludes: load
26 * check-output-excludes: store
27 * check-output-pattern(2): ret.32 *\\$1