new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4590 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
033bc2af75
commit
f0b063ef3e
3 changed files with 17 additions and 1 deletions
11
SWIG/Examples/test-suite/class_scope_weird.i
Normal file
11
SWIG/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 \
|
||||
using_namespace
|
||||
|
||||
|
||||
# Broken C test cases. (Can be run individually using make testcase.cpptest.)
|
||||
C_TEST_BROKEN +=
|
||||
|
||||
|
|
@ -76,6 +75,7 @@ CPP_TEST_CASES += \
|
|||
casts \
|
||||
cast_operator \
|
||||
class_ignore \
|
||||
class_scope_weird \
|
||||
const_const_2 \
|
||||
constant_pointers \
|
||||
constover \
|
||||
|
|
|
|||
|
|
@ -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