Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
catch1.C
blob: 81778ea780764364cae5ba5255f3482f6b6f959d [
file
] [
log
] [
blame
]
// PR c++/53371
// { dg-do compile { target c++11 } }
struct
Abs
{
virtual
void
a
()
=
0
;
};
void
foo
()
{
try
{
}
catch
(
Abs
)
{
}
// { dg-error "abstract class type" }
try
{
}
catch
(
int
&&)
{
}
// { dg-error "rvalue reference type" }
}