1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// { dg-do assemble } // Based on a testcase by Martin Bachtold <martinb@coyotesystems.com> struct foo { void m(); }; struct bar : foo { using foo::m; void m(int); }; void f() { bar b; b.m(); b.m(1); }