xref: /netbsd-src/tests/usr.bin/xlint/lint1/d_decl_old_style_arguments.c (revision 9fb66d812c00ebfb445c0b47dea128f32aa6fe96)
1 # 2 "d_decl_old_style_arguments.c"
2 
3 /*
4  * A function is declared with a prototype, followed by an old style definition
5  * that is completely different.
6  */
7 
8 void func(int a, int b, int c);
9 
10 void func(num, ptr, dbl, def)	/* expect: 231 *//* expect: 231 *//* expect: 231 *//* expect: 231 */
11     int num;
12     char *ptr;
13     double dbl;
14 {				/* expect: 32 *//* expect: 51 */
15 }
16