1 2 3 4 5 6 7 8 9 10 11 12
static void func (int i) { i; int j = i; } /* * check-name: declaration after statement (C89) * check-command: sparse -std=c89 $file * check-error-start declaration-after-statement-c89.c:4:9: warning: mixing declarations and code * check-error-end */