use v6;
use Test;

plan :skip-all<z>;
plan 1;

my $p = run($*EXECUTABLE, '--target=optimize',
    '-e', 'my int $i = 1; for ^10 { $i = $i * 2 }', :out);
say $p.out.slurp(:close);
# like $p.out.slurp(:close), /mul_i/,
    # '$i * 2 inlines to mul_i when $i is declared as int';

use v6;
use Test;

plan 1;

my $p = run($*EXECUTABLE, '--target=optimize',
    '-e', 'my int $i = 1; for ^10 { $i = $i * 2 }', :out);
like $p.out.slurp(:close), /mul_i/,
    '$i * 2 inlines to mul_i when $i is declared as int';

Revert "Temp-fudge mul_i opt test"
Revert "Temp-fudge mul_i opt test"

This reverts commit a3a7c142a48026db434893e79930478efba926c9.
