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