Improve Python static member variable testing

Double check the values are being set in the C++ layer via a function call to C++ layer.
This commit is contained in:
William S Fulton 2019-03-20 21:10:28 +00:00
commit 2bb5eeef91
2 changed files with 15 additions and 0 deletions

View file

@ -10,6 +10,7 @@ Tests Sourceforge bug #444748.
class StaticMemberTest {
public:
static int static_int;
static int grab_int() { return static_int; }
};
class StaticFunctionTest {
@ -28,10 +29,12 @@ int StaticMemberTest::static_int = 99;
%inline %{
struct StaticBase {
static int statty;
static int grab_statty_base() { return statty; }
virtual ~StaticBase() {}
};
struct StaticDerived : StaticBase {
static int statty;
static int grab_statty_derived() { return statty; }
};
%}