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