blob: 0d4dc8ff26856e35b8519ba89f73a70c007a6d5f [file] [log] [blame]
struct S {
inline virtual void foo () = 0; // { dg-bogus "used but never defined" }
#if __cplusplus > 201703L
constexpr virtual void bar () = 0; // { dg-bogus "used but never defined" "" { target c++2a } }
#else
inline virtual void bar () = 0; // { dg-bogus "used but never defined" "" { target c++17_down } }
#endif
S () {}
};
struct T : public S {
inline virtual void foo () {}
#if __cplusplus > 201703L
constexpr virtual void bar () {}
#else
inline virtual void bar () {}
#endif
T () {}
};
T t;
void foo (S *s) { s->foo (); s->bar (); }