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
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
pr31952-1.C
blob
aad3a11a77deaf047d2971d81dbcf925badf106b
1
// PR c++/31952
2
3
int
4
f0 (int bar) // { dg-message "previously" }
5
try
6
{
7
return 0;
8
}
9
catch (...)
10
{
11
int bar = 0; // { dg-error "redeclaration" }
12
return 1;
13
}
14
15
int
16
f1 (int bar)
17
try
18
{
19
return 0;
20
}
21
catch (...)
22
{
23
{
24
int bar = 0; // Ok, not outermost block.
25
}
26
return 1;
27
}
28
29
int
30
f2 (int bar)
31
{
32
try
33
{
34
return 0;
35
}
36
catch (...)
37
{
38
int bar = 0; // Ok, not a function-try-block.
39
return 1;
40
}
41
}