1 /* $NetBSD: msg_079.c,v 1.3 2021/08/27 20:16:50 rillig Exp $ */ 2 # 3 "msg_079.c" 3 4 // Test for message: dubious escape \%c [79] 5 6 int my_printf(const char *, ...); 7 8 void 9 print_color(_Bool red, _Bool green, _Bool blue) 10 { 11 /* expect+1: warning: dubious escape \e [79] */ 12 my_printf("\e[%dm", 13 30 + (red ? 1 : 0) + (green ? 2 : 0) + (blue ? 4 : 0)); 14 } 15