1f08c3bdfSopenharmony_ciextern int foo(int a, void *b);
2f08c3bdfSopenharmony_ci
3f08c3bdfSopenharmony_ciint foo(a, b)
4f08c3bdfSopenharmony_ci	int a;
5f08c3bdfSopenharmony_ci	void *b;
6f08c3bdfSopenharmony_ci{
7f08c3bdfSopenharmony_ci	if (b)
8f08c3bdfSopenharmony_ci		return a;
9f08c3bdfSopenharmony_ci}
10f08c3bdfSopenharmony_ci
11f08c3bdfSopenharmony_ci/*
12f08c3bdfSopenharmony_ci * check-name: old-stype-definition enabled
13f08c3bdfSopenharmony_ci * check-command: sparse -Wold-style-definition $file
14f08c3bdfSopenharmony_ci *
15f08c3bdfSopenharmony_ci * check-error-start
16f08c3bdfSopenharmony_ciold-style-definition1.c:4:9: warning: non-ANSI definition of function 'foo'
17f08c3bdfSopenharmony_ci * check-error-end
18f08c3bdfSopenharmony_ci */
19