diff options
| author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-07 16:42:07 +0000 |
|---|---|---|
| committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-07 16:42:07 +0000 |
| commit | 211a0b556843c1c6aed8069d8b231db86b321cd2 (patch) | |
| tree | 9613983a0a668ab13d6147973af2807bf0428273 /ext/dl/test | |
| parent | dd65bf6b7e8e9af28ce66c415c387249762b9353 (diff) | |
| download | ruby-211a0b556843c1c6aed8069d8b231db86b321cd2.tar.gz ruby-211a0b556843c1c6aed8069d8b231db86b321cd2.tar.xz ruby-211a0b556843c1c6aed8069d8b231db86b321cd2.zip | |
Get rid of ineffective symbols, lines, constants and so on.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/test')
| -rw-r--r-- | ext/dl/test/test.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/dl/test/test.rb b/ext/dl/test/test.rb index 3e124783f..52be04699 100644 --- a/ext/dl/test/test.rb +++ b/ext/dl/test/test.rb @@ -32,10 +32,6 @@ def debug(*xs) end end -print("VERSION = #{DL::VERSION}\n") -print("MAJOR_VERSION = #{DL::MAJOR_VERSION}\n") -print("MINOR_VERSION = #{DL::MINOR_VERSION}\n") -print("\n") print("DLSTACK = #{DL::DLSTACK}\n") print("MAX_ARG = #{DL::MAX_ARG}\n") print("\n") @@ -289,6 +285,11 @@ assert("struct!", :must, ptr["i"] == 3 && ptr["l"] == 4) -GC.start +ptr = DL::malloc(DL::sizeof("IP")) +ptr.struct!("IP", "n", "ptr") +ptr["n"] = 10 +ptr["ptr"] = nil +assert("struct!", :must, ptr["n"] == 10 && ptr["ptr"] == nil) +GC.start printf("fail/total = #{$FAIL}/#{$TOTAL}\n") |
