Files
c3c/test/test_suite/statements/foreach_with_error.c3
2021-11-27 00:57:27 +01:00

13 lines
172 B
C

module test;
fn void test()
{
int[3]! x;
int g;
foreach (z : x) // #error: The expression may not be failable.
{
g += z;
x[0] = 1;
}
}