use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 1;

{ # https://github.com/rakudo/rakudo/issues/1534
    (temp %*ENV)<MVM_SPESH_BLOCKING  MVM_SPESH_NODELAY> = 1, 1;
    is-run ｢use Test; use Test; print "pass"｣, :out<pass>,
        'no SPESH crashes with duplicate `use Test`';
}

# vim: expandtab shiftwidth=4 ft=perl6

Cover spesh crash in duplicate `use Test`
Cover spesh crash in duplicate `use Test`

MVM fix: https://github.com/MoarVM/MoarVM/commit/22d2db5e089c9efcf9dd210
Closes https://github.com/rakudo/rakudo/issues/1534 R#1534
Closes https://github.com/MoarVM/MoarVM/issues/804  M#804
