fix friend bug #1323114

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7670 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-10-17 13:28:59 +00:00
commit f62b5ed28f
2 changed files with 23 additions and 2 deletions

View file

@ -132,6 +132,28 @@
private:
C val;
};
namespace ns1 {
void bas() {}
void baz() {}
namespace ns2 {
class Foo {
public:
Foo::Foo() {};
friend void bar();
friend void ns1::baz();
void Foo::member() { }
};
void bar() {}
}
};
%}
%template(D_i) D<int>;