repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-life.C
blob
0fd1119d3ffdece374d8d10616d9b4b8bc57e17d
1
// Core 1376
2
// PR c++/52202
3
// { dg-do run { target c++11 } }
4
5
extern "C" void abort();
6
bool x;
7
struct T { ~T() { if (!x) abort (); } };
8
int main()
9
{
10
T&& r = static_cast<T&&>(T());
11
x = true;
12
}