/* $NetBSD: msg_174.c,v 1.7 2024/05/09 20:53:13 rillig Exp $ */
# 3 "msg_174.c"
// Test for message: too many initializers for '%s' [174]
/* lint1-extra-flags: -X 351 */
void
example(void)
{
/* A single pair of braces is always allowed. */
int n = { 13 };
/* expect+1: error: too many initializers for 'int' [174] */
int too_many = { 17, 19 };
/*
* An initializer list must have at least one expression, says the
* syntax definition in C99 6.7.8.
*/
int too_few = {};
}