added new chicken runme script
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6439 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a3a1db9f10
commit
3b9273f9a9
1 changed files with 9 additions and 0 deletions
9
SWIG/Examples/test-suite/chicken/newobject2_runme.ss
Normal file
9
SWIG/Examples/test-suite/chicken/newobject2_runme.ss
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
(load-library 'newobject2 "newobject2.so")
|
||||
|
||||
(define f (make <Foo>))
|
||||
|
||||
(slot-set! f 'dummy 14)
|
||||
(if (not (= (slot-ref f 'dummy) 14))
|
||||
(error "Bad dummy value"))
|
||||
|
||||
(exit 0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue