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