check_deref: use add_dereference_hook()
[smatch.git] / validation / expand / constant-init-array.c
blob94949be5424459c4df693967f0216d98ecfdfa91
1 int test_array(int i)
3 static const int a[3] = { 1, 2, 3, };
5 return a[1];
8 /*
9 * check-name: constant-init-array
10 * check-command: test-linearize -Wno-decl -fdump-ir $file
12 * check-output-ignore
13 * check-output-excludes: phisrc\\..*return.*\\$2
14 * check-output-contains: load\\.