Skip to content

Instantly share code, notes, and snippets.

@ungrim97
Created December 2, 2015 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ungrim97/ce323d11137f7beb7636 to your computer and use it in GitHub Desktop.
Save ungrim97/ce323d11137f7beb7636 to your computer and use it in GitHub Desktop.
t/04-nativecall/11-cpp.t failure
ok my $d2 = Derived2.new, 'can instantiate C++ class with vtable';
is $d2.foo, 11, 'can read attribute foo';
is $d2.bar, 42, 'can read attribute bar';
is $d2.baz, 43, 'can read attribute baz';
is $d2.cx, 3.14, 'can read attribute cx';
is $d2.cy, 2.62, 'can read attribute cy';
is $d2.c.chr, 'A', 'can read attribute c';
is $d2.intptr.deref, 666, 'can read typed pointer attribute';
Cannot invoke this object
in method deref at /home/mfrancis/Programming/Perl6/rakudo/lib/NativeCall/Types.pm:45
in block <unit> at t/04-nativecall/11-cpp.t:86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment