OSDN Git Service

PR c++/49528
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-cleanup.C
1 // { dg-options -std=c++0x }
2
3 struct A
4 {
5   int i;
6   ~A();
7 };
8
9 constexpr int i = A().i;        // { dg-error "destruction" }