diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1998-02-27 12:46:18 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-02-27 12:46:18 -0500 |
commit | bd8c73e92a7d6264a13e809b7ad9093f634c85f8 (patch) | |
tree | 57ca16cb8f1a1c49e0d9a49bd50b7595509fc075 | |
parent | db897306f29c47a7c103d63bbc535086e7dcee1e (diff) | |
download | gcc-bd8c73e92a7d6264a13e809b7ad9093f634c85f8.zip gcc-bd8c73e92a7d6264a13e809b7ad9093f634c85f8.tar.gz gcc-bd8c73e92a7d6264a13e809b7ad9093f634c85f8.tar.bz2 |
new
From-SVN: r18287
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/memclass2.C | 18 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/memclass3.C | 21 |
2 files changed, 39 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memclass2.C b/gcc/testsuite/g++.old-deja/g++.pt/memclass2.C new file mode 100644 index 0000000..2fc5c31 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/memclass2.C @@ -0,0 +1,18 @@ +template <class T> struct A { + template <class U> struct B { + template <class V> void f (V) { } + void g () { } + }; + template <class W> struct B<W*> { + void h () { } + }; +}; + +main () +{ + A<int>::B<char> b; + b.f (42); + b.g (); + A<double>::B<void*> b2; + b2.h (); +} diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memclass3.C b/gcc/testsuite/g++.old-deja/g++.pt/memclass3.C new file mode 100644 index 0000000..2174a3b --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/memclass3.C @@ -0,0 +1,21 @@ +template <class T> struct A { + template <class U> struct B { + template <class V> struct C { + template <class W> struct D { + template <class X> struct E { + template <class Y> struct F { + template <class Z> void f (Z) { } + void g () { } + }; + }; + }; + }; + }; +}; + +main () +{ + A<int>::B<int>::C<int>::D<int>::E<int>::F<int> b; + b.f (42); + b.g (); +} |