Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-virtual5.C

raw
1 // PR c+++/67592
2 // { dg-do compile { target c++11 } }
3
4 struct S {
5 constexpr virtual int f() { return 1; } // { dg-error "13:member .f. can be declared both .virtual. and .constexpr." "" { target c++17_down } }
6 };