OSDN Git Service

PR c++/51107
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-template3.C
1 // { dg-options -std=c++0x }
2
3 struct A { constexpr operator int() { return 42; } };
4
5 template<class T>
6 struct B {
7   static const int versionConst = A();
8   enum { versionEnum = versionConst };
9 };