fix for #1205859
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7306 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ed286236f3
commit
45fb27f977
3 changed files with 55 additions and 28 deletions
|
|
@ -138,6 +138,7 @@ CPP_TEST_CASES += \
|
|||
extend_placement \
|
||||
extend_template \
|
||||
extend_template_ns \
|
||||
extern_namespace \
|
||||
extern_throws \
|
||||
features \
|
||||
friends \
|
||||
|
|
|
|||
23
Examples/test-suite/extern_namespace.i
Normal file
23
Examples/test-suite/extern_namespace.i
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
%module extern_namespace
|
||||
%inline %{
|
||||
|
||||
namespace foo {
|
||||
|
||||
extern int bar(int blah = 1);
|
||||
|
||||
};
|
||||
|
||||
extern "C" int foobar(int i) {
|
||||
return i;
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
|
||||
|
||||
%{
|
||||
int foo::bar(int blah) {
|
||||
return blah;
|
||||
}
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue