param_key: fix container of when no struct member is referenced
[smatch.git] / validation / kill-store.c
blob204b036737b7e6f850602ca6569ee7d86a2968e0
1 void keep(int *p) { *p = 0; }
2 void kill(int *p, int i) { if (i && 0) *p = 0; }
3 void dead(int *p, int i) { int v = i++; if (i && 0) p[v] = 0; }
6 /*
7 * check-name: kill-store
8 * check-command: test-linearize -Wno-decl $file
9 * check-description:
10 * Check that stores are optimized away but only
11 * when needed:
12 * - bb unreachable.
14 * check-output-ignore
15 * check-output-pattern(1): store\\.