new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bc7154d098
commit
9ca7ea8ad0
3 changed files with 17 additions and 1 deletions
11
Examples/test-suite/class_scope_weird.i
Normal file
11
Examples/test-suite/class_scope_weird.i
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
%module class_scope_weird
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
class Foo {
|
||||||
|
public:
|
||||||
|
int Foo::bar(int x) {
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
%}
|
||||||
|
|
||||||
|
|
@ -50,7 +50,6 @@ CPP_TEST_BROKEN += \
|
||||||
template_specialization_enum \
|
template_specialization_enum \
|
||||||
using_namespace
|
using_namespace
|
||||||
|
|
||||||
|
|
||||||
# Broken C test cases. (Can be run individually using make testcase.cpptest.)
|
# Broken C test cases. (Can be run individually using make testcase.cpptest.)
|
||||||
C_TEST_BROKEN +=
|
C_TEST_BROKEN +=
|
||||||
|
|
||||||
|
|
@ -76,6 +75,7 @@ CPP_TEST_CASES += \
|
||||||
casts \
|
casts \
|
||||||
cast_operator \
|
cast_operator \
|
||||||
class_ignore \
|
class_ignore \
|
||||||
|
class_scope_weird \
|
||||||
const_const_2 \
|
const_const_2 \
|
||||||
constant_pointers \
|
constant_pointers \
|
||||||
constover \
|
constover \
|
||||||
|
|
|
||||||
5
Examples/test-suite/python/class_scope_weird_runme.py
Normal file
5
Examples/test-suite/python/class_scope_weird_runme.py
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
import class_scope_weird
|
||||||
|
|
||||||
|
f = class_scope_weird.Foo()
|
||||||
|
if f.bar(3) != 3:
|
||||||
|
raise RuntimeError
|
||||||
Loading…
Add table
Add a link
Reference in a new issue