xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/for2.C (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1 // Build don't link:
2 
foo()3 void foo() {
4   for (class C {};;)
5     ;
6   C c;		// ERROR -
7 }
8 
bar()9 void bar() {
10   for (enum E {num};;)
11     ;
12   E e;		// ERROR -
13 }
14 
bee()15 void bee () {
16   int i = 0;
17   for (int fun() = 0; i != 2; ++i) {	// ERROR -
18   }
19 }
20