msg_336.c revision 1.3
1/* $NetBSD: msg_336.c,v 1.3 2021/04/05 01:35:34 rillig Exp $ */ 2# 3 "msg_336.c" 3 4// Test for message: left operand of '%s' must not be bool [336] 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(b + i); /* expect: 336 *//* expect: 334 */ 19 test(b); 20 test(i != 0); 21} 22