OSDN Git Service

* cp-tree.def (LABEL_STMT): New tree node.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.ext / label1.C
1 // Origin: Mark Mitchell <mark@codesourcery.com>
2 // Special g++ Options:
3
4 int main ()
5 {
6   int i = 0;
7   int j = 0;
8   int k = 0;
9
10  l:
11   if (j)
12     return 0;
13   ({
14     __label__ l; 
15     k = 0;
16   l: 
17     if (++k <= 2)
18       goto l;
19     ++i;});
20   if (i > 1 || k != 3)
21     return 1;
22   else
23     {
24       j = 1;
25       goto l;
26     }
27 }