Debian Codegraph @

t/gh117.t

raw
1 use Test2::V0 -no_srand => 1;
2 use FFI::CheckLib qw( find_lib );
3 use FFI::Platypus;
4
5 my $libtest = find_lib lib => 'test', symbol => 'f0', libpath => 't/ffi';
6 my $ffi = FFI::Platypus->new;
7 $ffi->lib($libtest);
8
9 my $value64 = $ffi->function('gh117' => [] => 'uint64')->call;
10 note "value64 = $value64";
11
12 is($value64, "1099511627775");
13
14 done_testing;