14 my $have_alarm = $Config{d_alarm};
16 our $x = "abc\ndef\n";
22 # used to be a test for $*
71 # used to be a test for $*
72 ok("ab\ncd\n" =~ /^cd/m);
75 # Even with the alarm() OS/390 and BS2000 can't manage these tests
76 # (Perl just goes into a busy loop, luckily an interruptable one)
77 todo_skip('busy loop - compiler bug?', 2)
78 if $^O eq 'os390' or $^O eq 'posix-bc';
80 # [ID ] tests 25..26 may loop
84 ok(!/G.F$/, 'bug 20010618.006 (#7126)');
85 ok(!/[F]F$/, 'bug 20010618.006 (#7126)');
89 my $a = 'QaaQaabQaabbQ';
91 my @a = split /aab*/, $a;
92 is("@a", 'Q Q Q Q', 'split with studied string passed to the regep engine');
98 is(s/AB+/1/ge, 2, 'studied scalar passed to pp_substconst');
106 'studied scalar passed to pp_substconst with RX_MATCH_COPIED() true');
116 push @got, $_ foreach $a =~ /[^x]d(?{})[^x]d/g;
117 is("@got", 'ydyd ydyd', '#92696 control');
123 push @got, $_ foreach $a =~ /[^x]d(?{})[^x]d/g;
124 is("@got", 'ydyd ydyd', '#92696 study $a');
130 push @got, $_ foreach $a =~ /[^x]d(?{})[^x]d/g;
131 is("@got", 'ydyd ydyd', '#92696 study $b');
136 push @got, $_ foreach $a =~ /[^x]d(?{study $b})[^x]d/g;
137 is("@got", 'ydyd ydyd', '#92696 study $b inside (?{}), nothing studied');
144 push @got, $_ foreach $a =~ /[^x]d(?{study $b})[^x]d/g;
145 is("@got", 'ydyd ydyd', '#92696 study $b inside (?{}), $c studied');
151 push @got, $_ foreach $a =~ /[^x]d(?{study $b})[^x]d/g;
152 is("@got", 'ydyd ydyd', '#92696 study $b inside (?{}), $a studied');
158 push @got, $_ foreach $a =~ /[^x]d(?{$a .= ''})[^x]d/g;
159 is("@got", 'ydyd ydyd', '#92696 $a .= \'\' inside (?{}), $a studied');