c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / rv-life.C
blob0fd1119d3ffdece374d8d10616d9b4b8bc57e17d
1 // Core 1376
2 // PR c++/52202
3 // { dg-do run { target c++11 } }
5 extern "C" void abort();
6 bool x;
7 struct T { ~T() { if (!x) abort (); } };
8 int main()
10   T&& r = static_cast<T&&>(T());
11   x = true;