repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
for2.C
blob
fd01804d86b3584b9e1a5f13b5ddbf76a392c08f
1
// Build don't link:
2
3
void foo() {
4
for (class C {};;)
5
;
6
C c; // ERROR -
7
}
8
9
void bar() {
10
for (enum E {num};;)
11
;
12
E e; // ERROR -
13
}
14
15
void bee () {
16
int i = 0;
17
for (int fun() = 0; i != 2; ++i) { // ERROR -
18
}
19
}