Merge remote-tracking branch 'origin/shared_ptr_const_conv' into shared_ptr_derived_2
This commit is contained in:
commit
377d439964
4 changed files with 77 additions and 2 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
9
Examples/test-suite/ruby/cpp11_shared_ptr_const_runme.rb
Normal file
9
Examples/test-suite/ruby/cpp11_shared_ptr_const_runme.rb
Normal 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 )
|
||||
Loading…
Add table
Add a link
Reference in a new issue