1 /* $NetBSD: msg_174.c,v 1.4 2021/03/21 10:43:08 rillig Exp $ */ 2 # 3 "msg_174.c" 3 4 // Test for message: too many initializers [174] 5 6 void 7 example(void) 8 { 9 /* A single pair of braces is always allowed. */ 10 int n = { 13 }; 11 12 int too_many = { 17, 19 }; /* expect: 174 */ 13 14 /* 15 * An initializer list must have at least one expression, says the 16 * syntax definition in C99 6.7.8. 17 */ 18 int too_few = {}; 19 } 20