Merge remote-tracking branch 'origin/shared_ptr_const_conv' into shared_ptr_derived_2

This commit is contained in:
Takashi Tamura 2017-03-29 18:16:01 +09:00
commit 377d439964
4 changed files with 77 additions and 2 deletions

View file

@ -31,7 +31,8 @@ CPP_TEST_CASES = \
CPP11_TEST_CASES = \
cpp11_hash_tables \
cpp11_shared_ptr_upcast
cpp11_shared_ptr_upcast \
cpp11_shared_ptr_const
C_TEST_CASES += \
li_cstring \

View file

@ -0,0 +1,9 @@
require "swig_assert"
require "cpp11_shared_ptr_const"
include Cpp11_shared_ptr_const
simple_assert_equal(1, foo( Foo.new(1) ).get_m )
simple_assert_equal(7, const_foo( Foo.new(7) ).get_m )
simple_assert_equal(7, foo_vec( Foo.new(7) )[0].get_m )
simple_assert_equal(8, const_foo_vec( Foo.new(8) )[0].get_m )