Fix bug where module will segfault on load if it contains an object w/ the same name as the module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10369 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
de6e25f3bb
commit
6878125b87
4 changed files with 20 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ srcdir = @srcdir@
|
|||
top_srcdir = @top_srcdir@
|
||||
top_builddir = @top_builddir@
|
||||
|
||||
# CPP_TEST_CASES +=
|
||||
CPP_TEST_CASES += \
|
||||
samename
|
||||
|
||||
CPP_TEST_BROKEN += \
|
||||
implicittest \
|
||||
|
|
|
|||
13
Examples/test-suite/octave/samename.i
Normal file
13
Examples/test-suite/octave/samename.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module samename
|
||||
|
||||
%inline {
|
||||
|
||||
class samename {
|
||||
public:
|
||||
void do_something() {
|
||||
// ...
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
1
Examples/test-suite/octave/samename_runme.m
Normal file
1
Examples/test-suite/octave/samename_runme.m
Normal file
|
|
@ -0,0 +1 @@
|
|||
samename
|
||||
Loading…
Add table
Add a link
Reference in a new issue