* g++.old-deja/g++.other/externC4.C,
g++.old-deja/g++.other/friend10.C: New tests.
From-SVN: r37955
+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
--- /dev/null
+// Build don't link:
+// Origin: Neil Booth, from PR #66
+
+extern "C"
+{
+ class foo
+ {
+ public:
+ ~foo ();
+ void bar (foo *);
+ foo ();
+ };
+}
+
--- /dev/null
+// 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());
+ }
+ }