msg_337.c revision 1.3
1/* $NetBSD: msg_337.c,v 1.3 2021/04/05 01:35:34 rillig Exp $ */ 2# 3 "msg_337.c" 3 4// Test for message: right operand of '%s' must not be bool [337] 5// 6// See d_c99_bool_strict.c for many more examples. 7 8/* lint1-extra-flags: -T */ 9 10typedef _Bool bool; 11 12void 13test(bool); 14 15void 16example(bool b, int i) 17{ 18 test(i + b); /* expect: 337 *//* expect: 334 */ 19 test(b); 20 test(i != 0); 21} 22