summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/label9.C
blob: 81b385ffe3ae2066ebcda6b87839be00f230219d (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/32121
// { dg-do compile }

int f (void)
{
  while (1)
    __label__ a;	// { dg-error "not at the beginning" }
  for (;;)
    __label__ b;	// { dg-error "not at the beginning" }
}