From f76745450c8e0ee8c9737636adb88349f5509b01 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 2 Dec 2000 18:22:02 +0000 Subject: [PATCH] externC4.C, friend10.C: New tests. * g++.old-deja/g++.other/externC4.C, g++.old-deja/g++.other/friend10.C: New tests. From-SVN: r37955 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.old-deja/g++.other/externC4.C | 14 ++++++++++++ gcc/testsuite/g++.old-deja/g++.other/friend10.C | 30 +++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.other/externC4.C create mode 100644 gcc/testsuite/g++.old-deja/g++.other/friend10.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 716abf4..0b5b35b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2000-12-02 Neil Booth + * g++.old-deja/g++.other/externC4.C, + g++.old-deja/g++.other/friend10.C: New tests. + +2000-12-02 Neil Booth + * g++.old-deja/g++.other/instan2.C * g++.old-deja/g++.other/instan3.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.other/externC4.C b/gcc/testsuite/g++.old-deja/g++.other/externC4.C new file mode 100644 index 0000000..5a0d0f8 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/externC4.C @@ -0,0 +1,14 @@ +// Build don't link: +// Origin: Neil Booth, from PR #66 + +extern "C" +{ + class foo + { + public: + ~foo (); + void bar (foo *); + foo (); + }; +} + diff --git a/gcc/testsuite/g++.old-deja/g++.other/friend10.C b/gcc/testsuite/g++.old-deja/g++.other/friend10.C new file mode 100644 index 0000000..75b52cb --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/friend10.C @@ -0,0 +1,30 @@ +// Build don't link: +// Origin: Neil Booth, from PR #78 + +namespace MySpace + { + class Tag1 { }; + class Tag2 { }; + + template + class Object + { + public: + + friend void Forgotten(Object const & m) {} + }; + + typedef Object U1; + typedef Object U2; + + void foo() + { + Forgotten(U1()); + Forgotten(U2()); + } + + void bar() + { + Forgotten(U1()); + } + } -- 2.7.4