smatch_data/kernel.unreachable.ignore: add BUG(), WARN_ON() and others
[smatch.git] / validation / empty-expr.c
blob61decf7370997f3898f6e3f698db44fb0fb557b7
1 static int foo(void)
3 switch () {
4 case 0:
5 return 0;
6 default:
7 return 1;
11 static int bar(void)
13 if ()
14 return 0;
15 else
16 return 1;
20 * check-name: empty expression
22 * check-error-start
23 empty-expr.c:3:17: error: an expression is expected before ')'
24 empty-expr.c:13:13: error: an expression is expected before ')'
25 * check-error-end