Debian Codegraph @

gcc/testsuite/g++.dg/other/final6.C

raw
1 // PR c++/90909
2 // { dg-do link { target c++11 } }
3
4 struct S1 { virtual void f() = 0; };
5 struct S2: S1 { virtual void f() {} };
6 struct S3: S2 { using S1::f; };
7 struct S4 final: S3 { void g(); };
8 void S4::g() { f(); }
9 int main() { S4().g(); }