diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memclass2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/memclass2.C | 19 |
1 files changed, 19 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 000000000..bfad59687 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/memclass2.C @@ -0,0 +1,19 @@ +// { dg-do run } +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 () { } + }; +}; + +int main () +{ + A<int>::B<char> b; + b.f (42); + b.g (); + A<double>::B<void*> b2; + b2.h (); +} |