summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-cleanup.C
blob: de17f3ddb2560afb46820086d4c1fff95444b693 (plain)
1
2
3
4
5
6
7
8
9
// { dg-options -std=c++0x }

struct A
{
  int i;
  ~A();
};

constexpr int i = A().i;	// { dg-error "non-literal" }