Files
c3c/test/test_suite/statements/label_errors.c3
Christoffer Lerno 97ac957cb7 "Public by default"
2021-05-30 16:30:16 +02:00

24 lines
343 B
Plaintext

func int main()
{
do FOO:
{
while FOO: (1) // #error: would shadow a previous declaration
{
return 1;
}
}
return 0;
}
func void test1()
{
do FOO:
{
while (1)
{
break BAR; // #error: Cannot find a labelled statement with the name 'BAR'
}
}
}