diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/using4.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/using4.C | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/using4.C b/gcc/testsuite/g++.old-deja/g++.other/using4.C new file mode 100644 index 000000000..9d6e27e04 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/using4.C @@ -0,0 +1,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); +} |