Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / ext / label7.C
blobe92dccf5df5a2fd190dda2b514829bb4e4b93dd9
1 // PR c++/32121
2 // { dg-do compile }
4 int f (void)
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:;