apply_return_fixes.sh: exit with success
[smatch.git] / validation / infinite-loop03.c
blob7af877a83e95969f29ac3fa99fa9516501891f41
1 static void foo(int *buf)
3 int a = 1;
4 int *b;
5 do {
6 if (a)
7 b = buf;
8 if (a)
9 *buf = 0;
10 } while (!(a = !a));
14 * check-name: infinite loop 03
15 * check-command: sparse -Wno-decl $file
16 * check-timeout: