The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5fcae5eb66
commit
12a43edc2d
1508 changed files with 125983 additions and 44037 deletions
38
Examples/test-suite/perl5/primitive_ref_runme.pl
Normal file
38
Examples/test-suite/perl5/primitive_ref_runme.pl
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
use primitive_ref;
|
||||
|
||||
if (primitive_ref::ref_int(3) != 3) {
|
||||
print "ref_int failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_uint(3) != 3) {
|
||||
print "ref_uint failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_short(3) != 3) {
|
||||
print "ref_short failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_ushort(3) != 3) {
|
||||
print "ref_ushort failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_long(3) != 3) {
|
||||
print "ref_long failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_ulong(3) != 3) {
|
||||
print "ref_ulong failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_schar(3) != 3) {
|
||||
print "ref_schar failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_uchar(3) != 3) {
|
||||
print "ref_uchar failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_bool(1) != 1) {
|
||||
print "ref_bool failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_float(3.5) != 3.5) {
|
||||
print "ref_float failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_double(3.5) != 3.5) {
|
||||
print "ref_double failed!\n";
|
||||
}
|
||||
if (primitive_ref::ref_char('x') != 'x') {
|
||||
print "ref_char failed!\n";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue