PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-cleanup.C
blobbfba6fc9ebda49d8346ed1b43ca5fed33061a016
1 // { dg-do compile { target c++11 } }
3 struct A
5   int i;
6   ~A();
7 };
9 constexpr int i = A().i;        // { dg-error "non-literal" }