From: Jason Merrill Date: Mon, 10 Aug 1998 12:39:12 +0000 (-0400) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77d7c64b6ef508ae849d01ff938a495c190d3ac4;p=gcc.git new From-SVN: r21654 --- diff --git a/gcc/testsuite/g++.old-deja/g++.pt/lookup3.C b/gcc/testsuite/g++.old-deja/g++.pt/lookup3.C new file mode 100644 index 00000000000..9ada72f87b5 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/lookup3.C @@ -0,0 +1,17 @@ +template +class A { +public: + void f() { } +}; + +class B : public A { +public: + void f(); +}; + +int main() +{ + B b; + B& b1 = b; + b1.A::f(); +} diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t35a.C b/gcc/testsuite/g++.old-deja/g++.pt/t35a.C new file mode 100644 index 00000000000..40fba4d0997 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/t35a.C @@ -0,0 +1,5 @@ +// Build don't link: + +template struct A { }; +struct A { int foo (); }; +int A::foo () { return 37; } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/test4.C b/gcc/testsuite/g++.old-deja/g++.pt/test4.C new file mode 100644 index 00000000000..f4c2a205fdf --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/test4.C @@ -0,0 +1,4 @@ +// Build don't link: + +class B { }; +template class X : public B { int y[b]; }; diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename9.C b/gcc/testsuite/g++.old-deja/g++.pt/typename9.C new file mode 100644 index 00000000000..027d0a00043 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/typename9.C @@ -0,0 +1,16 @@ +// Test to make sure that implicit typename doesn't break name binding rules. +// Special g++ Options: -w + +typedef double A; +template class B { + typedef char A; +}; +template struct X : B { + A a; +}; + +int main() +{ + X x; + return sizeof (x.a) != sizeof (double); +}