Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-life.C
blob: 0fd1119d3ffdece374d8d10616d9b4b8bc57e17d [
file
] [
log
] [
blame
]
// Core 1376
// PR c++/52202
// { dg-do run { target c++11 } }
extern
"C"
void
abort
();
bool
x
;
struct
T
{
~
T
()
{
if
(!
x
)
abort
();
}
};
int
main
()
{
T
&&
r
=
static_cast
<
T
&&>(
T
());
x
=
true
;
}