use Test;
use MoarVM::SIL;

# running the tests after the code has run
if SIL() -> $SIL {
    my @names =
      'infix:<+>', 'infix:<->', 'infix:<*>', 'infix:</>',
      'CREATE_RATIONAL_FROM_INTS',
    ;

    plan +@names;

    for @names {
        ok $SIL.inlined-by-name($_), "Was $_ inlined?";
    }
}

# running the code
else {
    my $a = 42;
    my $b = 666;
    for ^100000 {
        my $c := $a + $b;
    }
    for ^100000 {
        my $c := $a - $b;
    }
    for ^100000 {
        my $c := $a * $b;
    }
    for ^100000 {
        my $c := $a / $b;
    }
}

# vim: expandtab shiftwidth=4

Add inlining tests for arithmetic operators
Add inlining tests for arithmetic operators
