diff options
Diffstat (limited to 'test/dl')
-rw-r--r-- | test/dl/test_cptr.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/dl/test_cptr.rb b/test/dl/test_cptr.rb index 64b78d134f..953af286e1 100644 --- a/test/dl/test_cptr.rb +++ b/test/dl/test_cptr.rb @@ -3,6 +3,11 @@ require_relative '../ruby/envutil' module DL class TestCPtr < TestBase + def test_cptr_to_int + null = DL::NULL + assert_equal(null.to_i, null.to_int) + end + def test_malloc_free_func_int free = CFunc.new(DL::RUBY_FREE, TYPE_VOID, 'free') |