smatch_data/kernel.unreachable.ignore: add BUG(), WARN_ON() and others
[smatch.git] / validation / linear / missing-return3.c
blobb32e5eea8842677c4eaaf9b29dc69a051dbb2ff4
1 static int foo(int a)
3 if (a)
4 return;
7 static void ref(void)
12 * check-name: missing-return3
13 * check-command: sparse -vir -flinearize=last $file
15 * check-error-start
16 linear/missing-return3.c:4:17: error: return with no return value
17 * check-error-end