mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-07 00:30:22 +08:00
new
From-SVN: r18287
This commit is contained in:
parent
db897306f2
commit
bd8c73e92a
18
gcc/testsuite/g++.old-deja/g++.pt/memclass2.C
Normal file
18
gcc/testsuite/g++.old-deja/g++.pt/memclass2.C
Normal file
@ -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 ();
|
||||
}
|
21
gcc/testsuite/g++.old-deja/g++.pt/memclass3.C
Normal file
21
gcc/testsuite/g++.old-deja/g++.pt/memclass3.C
Normal file
@ -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 ();
|
||||
}
|
Loading…
Reference in New Issue
Block a user