function_hooks/unwind: introduce return_implies_exact()
[smatch.git] / validation / linear / label-stmt-dropped.c
blob74e0f2e63aff9b4a63f6aa65ee0f001f7dff4694
1 /*
2 * Verify that the statement following an unused label
3 * is not discarded with the label.
4 */
6 static int bad(int a, int b)
8 int r = 0;
10 start:
11 r += a;
12 r += b;
14 if (!r)
15 goto start;
16 return r;
20 * check-name: label-stmt-dropped
21 * check-command: test-linearize $file
23 * check-output-ignore
24 * check-output-contains: add
25 * check-output-contains: %arg1