Moving the director protected member support to the top level. Now it should works in all the languages. Test it.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c3d8839dcb
commit
7bbbe3b274
8 changed files with 88 additions and 34 deletions
|
|
@ -47,8 +47,6 @@ DYNAMIC_LIB_PATH = $(RUNTIMEDIR):.
|
|||
CPP_TEST_BROKEN += \
|
||||
array_typedef_memberin \
|
||||
defvalue_constructor \
|
||||
director_nested \
|
||||
director_protected \
|
||||
exception_order \
|
||||
namespace_union \
|
||||
smart_pointer_namespace2 \
|
||||
|
|
@ -116,6 +114,8 @@ CPP_TEST_CASES += \
|
|||
director_finalizer \
|
||||
director_unroll \
|
||||
director_wombat \
|
||||
director_nested \
|
||||
director_protected \
|
||||
dynamic_cast \
|
||||
enum_plus \
|
||||
enum_scope \
|
||||
|
|
|
|||
|
|
@ -47,14 +47,14 @@
|
|||
}
|
||||
|
||||
|
||||
virtual std::string do_step() = 0;
|
||||
virtual std::string do_step() const = 0;
|
||||
};
|
||||
|
||||
template <class C>
|
||||
class FooBar : public Bar
|
||||
{
|
||||
public:
|
||||
virtual C get_value() = 0;
|
||||
virtual C get_value() const = 0;
|
||||
};
|
||||
%}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,20 +35,20 @@ try:
|
|||
except:
|
||||
raise RuntimeError," bad FooBar::pong"
|
||||
|
||||
private=1
|
||||
protected=1
|
||||
try:
|
||||
b.ping()
|
||||
private=0
|
||||
protected=0
|
||||
except:
|
||||
pass
|
||||
if not private:
|
||||
raise RuntimeError,"Boo::ping is private"
|
||||
if not protected:
|
||||
raise RuntimeError,"Boo::ping is protected"
|
||||
|
||||
private=1
|
||||
protected=1
|
||||
try:
|
||||
f.ping()
|
||||
private=0
|
||||
protected=0
|
||||
except:
|
||||
pass
|
||||
if not private:
|
||||
raise RuntimeError,"Foo::ping is private"
|
||||
if not protected:
|
||||
raise RuntimeError,"Foo::ping is protected"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue