PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-virtual5.C
blob2465f9d9b4f3b095afb07b8d24c89384d1ffcfbe
1 // PR c+++/67592
2 // { dg-do compile { target c++11 } }
4 struct S {
5   constexpr virtual int f() { return 1; }  // { dg-error "13:member .f. cannot be declared both .virtual. and .constexpr." }
6 };