diff options
author | Neil Booth <neilb@earthling.net> | 2000-12-02 18:22:02 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-12-02 18:22:02 +0000 |
commit | f76745450c8e0ee8c9737636adb88349f5509b01 (patch) | |
tree | 318081505ed1df785ea5a6fc58c7af0932fbed59 /gcc | |
parent | f1008e52f1060e8f84ed41b6d129ae38e8262516 (diff) | |
download | gcc-f76745450c8e0ee8c9737636adb88349f5509b01.zip gcc-f76745450c8e0ee8c9737636adb88349f5509b01.tar.gz gcc-f76745450c8e0ee8c9737636adb88349f5509b01.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/externC4.C | 14 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/friend10.C | 30 |
3 files changed, 49 insertions, 0 deletions
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 <neilb@earthling.net> + * g++.old-deja/g++.other/externC4.C, + g++.old-deja/g++.other/friend10.C: New tests. + +2000-12-02 Neil Booth <neilb@earthling.net> + * 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 Tag> + class Object + { + public: + + friend void Forgotten(Object const & m) {} + }; + + typedef Object<Tag1> U1; + typedef Object<Tag2> U2; + + void foo() + { + Forgotten(U1()); + Forgotten(U2()); + } + + void bar() + { + Forgotten(U1()); + } + } |