xref: /netbsd-src/tests/usr.bin/xlint/lint1/msg_032.c (revision f56b29a750628a7095c5912a389a6083a9f727f9)
1 /*	$NetBSD: msg_032.c,v 1.4 2022/04/24 20:08:23 rillig Exp $	*/
2 # 3 "msg_032.c"
3 
4 // Test for message: argument type defaults to 'int': %s [32]
5 
6 /* expect+5: error: old style declaration; add 'int' [1] */
7 add(a, b, c)
8 /* expect+3: warning: argument type defaults to 'int': a [32] */
9 /* expect+2: warning: argument type defaults to 'int': b [32] */
10 /* expect+1: warning: argument type defaults to 'int': c [32] */
11 {
12 	return a + b + c;
13 }
14