repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
ext
/
forscope1.C
blob
fa6401a3b9439b3436da23ac1223740b4c0c13f0
1
// { dg-do compile }
2
// { dg-options -fno-for-scope }
3
4
// Copyright (C) 2001 Free Software Foundation, Inc.
5
// Contributed by Nathan Sidwell 4 Sept 2001 <nathan@codesourcery.com>
6
7
// Bug 4206. We were nesting SCOPE_STMTs badly.
8
9
10
struct A
11
{
12
A ();
13
~A ();
14
};
15
16
17
void Go( )
18
{
19
for (int i = 1;;)
20
{
21
switch (1) {
22
default: {}
23
}
24
A d;
25
}
26
i;
27
}