Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / temp-extend1.C
blob639f945657353323e6227f3dac5a0a08af9d0aa0
1 // PR c++/81420
2 // { dg-do run { target c++11 } }
4 int d;
6 struct A
8   int i[2];
9   ~A() { ++d; };
12 struct B: A {};
14 int main()
16   const int &r = B().i[0];
17   if (d != 0)
18     __builtin_abort();