require './test.pl';
}
-plan tests => 4;
+plan tests => 5;
require_ok("B::Concise");
is($op_base, 1, "Smallest OP sequence number");
-($op_base_p1, $cop_base) = ($out =~ /^(\d+)\s*<;>\s*nextstate\(main (\d+) /m);
+($op_base_p1, $cop_base)
+ = ($out =~ /^(\d+)\s*<;>\s*nextstate\(main (-?\d+) /m);
is($op_base_p1, 2, "Second-smallest OP sequence number");
is($cop_base, 1, "Smallest COP sequence number");
+
+# test that with -exec B::Concise navigates past logops (bug #18175)
+
+$out = runperl(
+ switches => ["-MO=Concise,-exec"],
+ prog => q{$a//=$b && print q/foo/},
+ stderr => 1,
+);
+
+like($out, qr/print/, "-exec option with //=");