helper: add get_last_statement_from_expression_stmt() [build fix]
[smatch.git] / validation / declaration-after-statement-c89.c
blob886f9713f9424478bceed36e9b3a172da2ae7192
1 static void func (int i)
3 i;
4 int j = i;
6 /*
7 * check-name: declaration after statement (C89)
8 * check-command: sparse -std=c89 $file
9 * check-error-start
10 declaration-after-statement-c89.c:4:9: warning: mixing declarations and code
11 * check-error-end