expressions: make assign_expression() take an op argument
[smatch.git] / validation / discarded-label-statement.c
blobb4e58ac64e1d2e3be9eaf0db3c3c0f66bb38754f
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 return r;
18 * check-name: discarded-label-statement
19 * check-command: test-linearize $file
21 * check-output-ignore
22 * check-output-contains: add
23 * check-output-contains: %arg1