use Test;
use nqp;
# Tests for nqp ops that don't fit into nqp's test suit

plan 1;

lives-ok {
    nqp::p6bindattrinvres(($ := 42), Int, q|$!value|, nqp::getattr(42, Int, q|$!value|))
}, 'p6bindattrinvres with getattr of bigint does not crash';

Test p6bindattrinvres with getattr of bigint…
Test p6bindattrinvres with getattr of bigint…

…does not SEGV.

RT#132128:  https://rt.perl.org/Ticket/Display.html?id=132128
Rakudo fix: https://github.com/rakudo/rakudo/commit/dff7d9b28a
NQP    fix: https://github.com/perl6/nqp/commit/4bc6050d6e
MoarVM fix: https://github.com/MoarVM/MoarVM/commit/3b4b032984
