Debian Codegraph @

gcc/testsuite/g++.dg/ext/label7.C

raw
1 // PR c++/32121
2 // { dg-do compile }
3
4 void f (void)
5 {
6 a:;
7 __label__ a; // { dg-error "not at the beginning" }
8 int b;
9 __label__ c; // { dg-error "not at the beginning" }
10 a:; // { dg-error "duplicate label" }
11 c:;
12 }