msg_079.c revision 1.4
1/* $NetBSD: msg_079.c,v 1.4 2023/03/28 14:44:34 rillig Exp $ */ 2# 3 "msg_079.c" 3 4// Test for message: dubious escape \%c [79] 5 6/* lint1-extra-flags: -X 351 */ 7 8int my_printf(const char *, ...); 9 10void 11print_color(_Bool red, _Bool green, _Bool blue) 12{ 13 /* expect+1: warning: dubious escape \e [79] */ 14 my_printf("\e[%dm", 15 30 + (red ? 1 : 0) + (green ? 2 : 0) + (blue ? 4 : 0)); 16} 17