1 /* $NetBSD: msg_170.c,v 1.5 2022/06/16 16:58:36 rillig Exp $ */ 2 # 3 "msg_170.c" 3 4 // Test for message: first operand must have scalar type, op ? : [170] 5 6 struct number { 7 int value; 8 }; 9 10 _Bool 11 /* expect+1: warning: argument 'num' unused in function 'example' [231] */ 12 example(const struct number *num) 13 { 14 /* expect+2: error: first operand must have scalar type, op ? : [170] */ 15 /* expect+1: warning: function 'example' expects to return value [214] */ 16 return *num ? 1 : 0; 17 } 18