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
* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
for2.C
blob
6eb5d66675e568bba22f3116095b12cad4363afb
1
// { dg-do assemble }
2
3
void foo() {
4
for (class C {};;)
5
;
6
C c; // { dg-error "declared" "decl" }
7
}
8
9
void bar() {
10
for (enum E {num};;)
11
;
12
E e; // { dg-error "declared" "decl" }
13
}
14
15
void bee () {
16
int i = 0;
17
for (int fun() = 0; i != 2; ++i) { // { dg-warning "extern" "extern" }
18
// { dg-error "initialized" "init" { target *-*-* } .-1 }
19
}
20
}