Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
;
}
}