Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
pr31952-3.C
blob: 9fe5f02837860693c243a602a44518cc8ba8d348 [
file
] [
log
] [
blame
]
// PR c++/31952
int
f0
(
int
bar
)
// { dg-message "previously" }
try
{
return
0
;
}
catch
(
int
bar
)
// { dg-error "redeclaration" }
{
return
1
;
}
int
f1
(
int
bar
)
{
try
{
return
0
;
}
catch
(
int
bar
)
// Ok, not a function-try-block.
{
return
1
;
}
}