Commit f7674545 by Neil Booth Committed by Neil Booth

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
parent f1008e52
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.
......
// Build don't link:
// Origin: Neil Booth, from PR #66
extern "C"
{
class foo
{
public:
~foo ();
void bar (foo *);
foo ();
};
}
// 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());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment