Debian Codegraph @

t/ffi_platypus_lang_c.t

raw symbols SCIP
1 use Test2::V0scip-perl cpan FFI-Platypus 2.11 Test2/V0/ -no_srand => 1;
2 use FFI::CheckLibscip-perl cpan FFI-Platypus 2.11 FFI/CheckLib/;
3 use FFI::Platypusscip-perl cpan FFI-Platypus 2.11 FFI/Platypus/;
4
5 my $libtest = find_libscip-perl cpan FFI-Platypus 2.11 main/find_lib(). lib => 'test', symbol => 'f0', libpath => 't/ffi';
6
7 subtest C => sub {
8 my $ffi = FFI::Platypus->newscip-perl cpan FFI-Platypus 2.11 FFI/Platypus/new().;
9 $ffi->libscip-perl cpan FFI-Platypus 2.11 FFI/Platypus/lib().($libtest);
10
11 eval { $ffi->typescip-perl cpan FFI-Platypus 2.11 FFI/Platypus/type().('int') };
12 isscip-perl cpan FFI-Platypus 2.11 main/is(). $@scip-perl cpan FFI-Platypus 2.11 main/`$@`., '', 'int is an okay type';
13 eval { $ffi->typescip-perl cpan FFI-Platypus 2.11 FFI/Platypus/type().('foo_t') };
14 isntscip-perl cpan FFI-Platypus 2.11 main/isnt(). $@scip-perl cpan FFI-Platypus 2.11 main/`$@`., '', 'foo_t is not an okay type';
15 notescip-perl cpan FFI-Platypus 2.11 main/note(). $@scip-perl cpan FFI-Platypus 2.11 main/`$@`.;
16 eval { $ffi->typescip-perl cpan FFI-Platypus 2.11 FFI/Platypus/type().('sint16') };
17 isscip-perl cpan FFI-Platypus 2.11 main/is(). $@scip-perl cpan FFI-Platypus 2.11 main/`$@`., '', 'sint16 is an okay type';
18
19 isscip-perl cpan FFI-Platypus 2.11 main/is(). $ffi->find_symbolscip-perl cpan FFI-Platypus 2.11 FFI/Platypus/find_symbol().('UnMangled::Name(int i)'), undef, 'unable to find unmangled name';
20
21 };
22
23 done_testing;