From: Alexandre Oliva Date: Sat, 10 Oct 1998 07:38:29 +0000 (+0000) Subject: using5.C: New test; using decl from base class should be usable as argument of member... X-Git-Tag: prereleases/libgcj-0.1~2627 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2feb9724a17b852f8c01f63af9db786d29f86772;p=thirdparty%2Fgcc.git using5.C: New test; using decl from base class should be usable as argument of member function * g++.old-deja/g++.other/using5.C: New test; using decl from base class should be usable as argument of member function * g++.old-deja/g++.other/using6.C: New test; using decl from base class should be usable as return type of member function * g++.old-deja/g++.other/using7.C: New test; using decl from base class should be usable as type of data member From-SVN: r22970 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1512987c72bf..6fee7443a5e8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,12 @@ 1998-10-10 Alexandre Oliva + * g++.old-deja/g++.other/using5.C: New test; using decl from base + class should be usable as argument of member function + * g++.old-deja/g++.other/using6.C: New test; using decl from base + class should be usable as return type of member function + * g++.old-deja/g++.other/using7.C: New test; using decl from base + class should be usable as type of data member + * g++.old-deja/g++.ns/extern1.C: fix XFAIL mark Fri Oct 9 19:19:19 1998 Jeffrey A Law (law@cygnus.com) diff --git a/gcc/testsuite/g++.old-deja/g++.other/using5.C b/gcc/testsuite/g++.old-deja/g++.other/using5.C new file mode 100644 index 000000000000..df610b21f670 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/using5.C @@ -0,0 +1,15 @@ +// Build don't link: + +// Based on bug report by Klaus-Georg Adams +// + +// crash test - XFAIL *-*-* + +struct bar { + typedef bar t; +}; + +struct foo : bar { + using bar::t; + void baz(t pos); +}; diff --git a/gcc/testsuite/g++.old-deja/g++.other/using6.C b/gcc/testsuite/g++.old-deja/g++.other/using6.C new file mode 100644 index 000000000000..2cdaf670215f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/using6.C @@ -0,0 +1,13 @@ +// Build don't link: + +// Based on bug report by Klaus-Georg Adams +// + +struct bar { + typedef bar t; +}; + +struct foo : bar { + using bar::t; + t baz(); // syntax error?!? - XFAIL *-*-* +}; diff --git a/gcc/testsuite/g++.old-deja/g++.other/using7.C b/gcc/testsuite/g++.old-deja/g++.other/using7.C new file mode 100644 index 000000000000..5c54f80b9a15 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/using7.C @@ -0,0 +1,13 @@ +// Build don't link: + +// Based on bug report by Klaus-Georg Adams +// + +struct bar { + typedef bar t; +}; + +struct foo : bar { + using bar::t; + t baz; // syntax error?!? - XFAIL *-*-* +};