Files
c3c/test/test_suite7/statements/label_errors.c3
2025-02-23 13:53:04 +01:00

24 lines
365 B
Plaintext

fn int main()
{
do FOO:
{
while FOO: (1) // #error: would shadow a previous declaration
{
return 1;
}
};
return 0;
}
fn void test1()
{
do FOO:
{
while (1)
{
break BAR; // #error: A labelled statement with the name 'BAR' can't be found in the current scope
}
};
}