diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/memclass1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/memclass1.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memclass1.C b/gcc/testsuite/g++.old-deja/g++.pt/memclass1.C new file mode 100644 index 000000000..e1d748a3c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/memclass1.C @@ -0,0 +1,14 @@ +// { dg-do run } +template <class T> struct A { + template <class U> struct B { + template <class V> void f (V) { } + void g () { } + }; +}; + +int main () +{ + A<int>::B<char> b; + b.f (42); + b.g (); +} |