Files
c3c/test/test_suite/statements/foreach_parse_error.c3

5 lines
187 B
C

func void test9()
{
foreach (int a : { [2] = 1 }) foo();
foreach (int a : { [2] = 2, 1 }) foo(); // #error: Normal initialization cannot be mixed with designated initialization.
}