1 /* $NetBSD: msg_288.c,v 1.3 2022/06/16 21:24:41 rillig Exp $ */ 2 # 3 "msg_288.c" 3 4 // Test for message: dubious use of /* VARARGS */ with /* %s */ [288] 5 6 /* VARARGS */ 7 int 8 just_varargs(char x) 9 { 10 /* 11 * No warning here, even though having a VARARGS annotation on a 12 * function that is incompatible to varargs is dubious. 13 */ 14 return x; 15 } 16 17 /* VARARGS */ 18 /* PRINTFLIKE */ 19 int 20 example(int x) 21 /* expect+1: warning: dubious use of ** VARARGS ** with ** PRINTFLIKE ** [288] */ 22 { 23 return x; 24 } 25