PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-virtual5.C
blob895de506d6740de3b65b970b1dc5c66b1655b299
1 // PR c+++/67592
2 // { dg-do compile { target c++11 } }
4 struct S {
5   constexpr virtual int f() { return 1; }  // { dg-error "both 'virtual' and 'constexpr'" }
6 };