~ubuntu-branches/ubuntu/hoary/swig1.3/hoary

« back to all changes in this revision

Viewing changes to Examples/test-suite/ruby/smart_pointer_multi_runme.rb

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-08-02 15:57:10 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040802155710-bm292q1d6x6tw7gc
Tags: 1.3.21-5ubuntu1
Fix linking for ruby, python, perl and tcl bindings

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
require 'smart_pointer_multi'
 
2
 
 
3
include Smart_pointer_multi
 
4
 
 
5
f = Foo.new
 
6
b = Bar.new(f)
 
7
s = Spam.new(b)
 
8
g = Grok.new(b)
 
9
 
 
10
s.x = 3
 
11
raise RuntimeError if s.getx() != 3
 
12
 
 
13
g.x = 4
 
14
raise RuntimeError if g.getx() != 4
 
15