projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
test-suite
/
octave
/
refcount_runme.m
1
refcount
2
#
3
# very innocent example
4
#
5
6
a = A3();
7
b1 = B(a);
8
b2 = B.create(a);
9
10
11
if (a.ref_count() != 3)
12
error("This program will crash... now")
13
endif
14
15