2 inline virtual void foo () = 0; // { dg-bogus "used but never defined" }
3 #if __cplusplus > 201703L
4 constexpr virtual void bar () = 0; // { dg-bogus "used but never defined" "" { target c++2a } }
6 inline virtual void bar () = 0; // { dg-bogus "used but never defined" "" { target c++17_down } }
11 inline virtual void foo () {}
12 #if __cplusplus > 201703L
13 constexpr virtual void bar () {}
15 inline virtual void bar () {}
20 void foo (S *s) { s->foo (); s->bar (); }