diff options
author | Alexandre Oliva <oliva@dcc.unicamp.br> | 1998-10-07 21:22:16 +0000 |
---|---|---|
committer | Alexandre Oliva <oliva@gcc.gnu.org> | 1998-10-07 21:22:16 +0000 |
commit | 00b8ce6bace16a1f00b34e17a1db9f3dd97f1bcb (patch) | |
tree | 82ed930fbf8909a35e8038a12c5c6b22bd79d3ea | |
parent | 5e11b87c5f1203a21091ecc7b9b364af7583851b (diff) | |
download | gcc-00b8ce6bace16a1f00b34e17a1db9f3dd97f1bcb.zip gcc-00b8ce6bace16a1f00b34e17a1db9f3dd97f1bcb.tar.gz gcc-00b8ce6bace16a1f00b34e17a1db9f3dd97f1bcb.tar.bz2 |
using4.C: New test.
* g++.old-deja/g++.other/using4.C: New test. Test using
declarations of methods from base classes.
From-SVN: r22903
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/using4.C | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 78bddf1..b15599c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 1998-10-08 Alexandre Oliva <oliva@dcc.unicamp.br> + * g++.old-deja/g++.other/using4.C: New test. Test using + declarations of methods from base classes. + * g++.old-deja/g++.ns/extern1.C: New test. Extern declarations within functions should introduce names into the innermost enclosing namespace 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 0000000..218ffe2 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/using4.C @@ -0,0 +1,20 @@ +// Build don't link: + +// Based on a testcase by Martin Bachtold <martinb@coyotesystems.com> + +// excess errors test - XFAIL *-*-* + +struct foo { + void m(); +}; + +struct bar : foo { + using foo::m; + void m(int); +}; + +void f() { + bar b; + b.m(); + b.m(1); +} |