summaryrefslogtreecommitdiff
path: root/Examples/test-suite/perl5/return_const_value_runme.pl
blob: 4b31c0b26f33775bec1cf798d191bf0e29d7ab60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 4;
BEGIN { use_ok('return_const_value') }
require_ok('return_const_value');

# adapted from ../python/return_const_value_runme.py

is(return_const_value::Foo_ptr::getPtr()->getVal(), 17);

is(return_const_value::Foo_ptr::getConstPtr()->getVal(), 17);