Commit | Line | Data |
a0d0e21e |
1 | #!./perl |
2 | |
fb73857a |
3 | # NOTE: Please don't add tests to this file unless they *need* to be run in |
4 | # separate executable and can't simply use eval. |
5 | |
a0d0e21e |
6 | chdir 't' if -d 't'; |
20822f61 |
7 | @INC = '../lib'; |
a0d0e21e |
8 | $ENV{PERL5LIB} = "../lib"; |
9 | |
10 | $|=1; |
11 | |
12 | undef $/; |
13 | @prgs = split "\n########\n", <DATA>; |
14 | print "1..", scalar @prgs, "\n"; |
15 | |
16 | $tmpfile = "misctmp000"; |
17 | 1 while -f ++$tmpfile; |
ed6b3797 |
18 | END { while($tmpfile && unlink $tmpfile){} } |
a0d0e21e |
19 | |
68dc0745 |
20 | $CAT = (($^O eq 'MSWin32') ? '.\perl -e "print <>"' : 'cat'); |
21 | |
a0d0e21e |
22 | for (@prgs){ |
23 | my $switch; |
fb73857a |
24 | if (s/^\s*(-\w.*)//){ |
25 | $switch = $1; |
a0d0e21e |
26 | } |
27 | my($prog,$expected) = split(/\nEXPECT\n/, $_); |
648cac19 |
28 | open TEST, ">$tmpfile" or die "Cannot open $tmpfile: $!"; |
ed6b3797 |
29 | $prog =~ s#/dev/null#NL:# if $^O eq 'VMS'; |
30 | $prog =~ s#if \(-e _ and -f _ and -r _\)#if (-e _ and -f _)# if $^O eq 'VMS'; # VMS file locking |
31 | |
648cac19 |
32 | print TEST $prog, "\n"; |
33 | close TEST or die "Cannot close $tmpfile: $!"; |
34 | |
68dc0745 |
35 | if ($^O eq 'MSWin32') { |
648cac19 |
36 | $results = `.\\perl -I../lib $switch $tmpfile 2>&1`; |
68dc0745 |
37 | } |
38 | else { |
648cac19 |
39 | $results = `./perl $switch $tmpfile 2>&1`; |
68dc0745 |
40 | } |
a0d0e21e |
41 | $status = $?; |
a0d0e21e |
42 | $results =~ s/\n+$//; |
648cac19 |
43 | $results =~ s/at\s+misctmp\d+\s+line/at - line/g; |
44 | $results =~ s/of\s+misctmp\d+\s+aborted/of - aborted/g; |
f0ec1f9a |
45 | # bison says 'parse error' instead of 'syntax error', |
d91e2bdb |
46 | # various yaccs may or may not capitalize 'syntax'. |
2a8ee232 |
47 | $results =~ s/^(syntax|parse) error/syntax error/mig; |
a0d0e21e |
48 | $expected =~ s/\n+$//; |
8feb4e9f |
49 | if ( $results ne $expected ) { |
a0d0e21e |
50 | print STDERR "PROG: $switch\n$prog\n"; |
51 | print STDERR "EXPECTED:\n$expected\n"; |
52 | print STDERR "GOT:\n$results\n"; |
53 | print "not "; |
54 | } |
55 | print "ok ", ++$i, "\n"; |
56 | } |
57 | |
58 | __END__ |
2ace3117 |
59 | ()=() |
60 | ######## |
44a8e56a |
61 | $a = ":="; split /($a)/o, "a:=b:=c"; print "@_" |
62 | EXPECT |
63 | a := b := c |
64 | ######## |
36477c24 |
65 | $cusp = ~0 ^ (~0 >> 1); |
85e0ebd8 |
66 | use integer; |
36477c24 |
67 | $, = " "; |
85e0ebd8 |
68 | print +($cusp - 1) % 8, $cusp % 8, -$cusp % 8, 8 | (($cusp + 1) % 8 + 7), "!\n"; |
36477c24 |
69 | EXPECT |
85e0ebd8 |
70 | 7 0 0 8 ! |
36477c24 |
71 | ######## |
a0d0e21e |
72 | $foo=undef; $foo->go; |
73 | EXPECT |
72b5445b |
74 | Can't call method "go" on an undefined value at - line 1. |
a0d0e21e |
75 | ######## |
76 | BEGIN |
77 | { |
78 | "foo"; |
79 | } |
80 | ######## |
a0d0e21e |
81 | $array[128]=1 |
82 | ######## |
83 | $x=0x0eabcd; print $x->ref; |
84 | EXPECT |
85 | Can't call method "ref" without a package or object reference at - line 1. |
86 | ######## |
648cac19 |
87 | chop ($str .= <DATA>); |
a0d0e21e |
88 | ######## |
89 | close ($banana); |
90 | ######## |
91 | $x=2;$y=3;$x<$y ? $x : $y += 23;print $x; |
92 | EXPECT |
93 | 25 |
94 | ######## |
95 | eval {sub bar {print "In bar";}} |
96 | ######## |
68dc0745 |
97 | system './perl -ne "print if eof" /dev/null' |
a0d0e21e |
98 | ######## |
648cac19 |
99 | chop($file = <DATA>); |
a0d0e21e |
100 | ######## |
101 | package N; |
102 | sub new {my ($obj,$n)=@_; bless \$n} |
103 | $aa=new N 1; |
104 | $aa=12345; |
105 | print $aa; |
106 | EXPECT |
107 | 12345 |
108 | ######## |
109 | %@x=0; |
110 | EXPECT |
f1612b5c |
111 | Can't modify hash dereference in repeat (x) at - line 1, near "0;" |
3fe9a6f1 |
112 | Execution of - aborted due to compilation errors. |
a0d0e21e |
113 | ######## |
114 | $_="foo"; |
115 | printf(STDOUT "%s\n", $_); |
116 | EXPECT |
117 | foo |
118 | ######## |
119 | push(@a, 1, 2, 3,) |
120 | ######## |
121 | quotemeta "" |
122 | ######## |
123 | for ("ABCDE") { |
124 | ⊂ |
125 | s/./&sub($&)/eg; |
126 | print;} |
127 | sub sub {local($_) = @_; |
128 | $_ x 4;} |
129 | EXPECT |
130 | Modification of a read-only value attempted at - line 3. |
131 | ######## |
132 | package FOO;sub new {bless {FOO => BAR}}; |
133 | package main; |
134 | use strict vars; |
135 | my $self = new FOO; |
136 | print $$self{FOO}; |
137 | EXPECT |
138 | BAR |
139 | ######## |
140 | $_="foo"; |
141 | s/.{1}//s; |
142 | print; |
143 | EXPECT |
144 | oo |
145 | ######## |
146 | print scalar ("foo","bar") |
147 | EXPECT |
148 | bar |
149 | ######## |
150 | sub by_number { $a <=> $b; };# inline function for sort below |
151 | $as_ary{0}="a0"; |
152 | @ordered_array=sort by_number keys(%as_ary); |
153 | ######## |
154 | sub NewShell |
155 | { |
156 | local($Host) = @_; |
157 | my($m2) = $#Shells++; |
158 | $Shells[$m2]{HOST} = $Host; |
159 | return $m2; |
160 | } |
161 | |
162 | sub ShowShell |
163 | { |
164 | local($i) = @_; |
165 | } |
166 | |
167 | &ShowShell(&NewShell(beach,Work,"+0+0")); |
168 | &ShowShell(&NewShell(beach,Work,"+0+0")); |
169 | &ShowShell(&NewShell(beach,Work,"+0+0")); |
170 | ######## |
171 | { |
172 | package FAKEARRAY; |
173 | |
174 | sub TIEARRAY |
175 | { print "TIEARRAY @_\n"; |
176 | die "bomb out\n" unless $count ++ ; |
177 | bless ['foo'] |
178 | } |
179 | sub FETCH { print "fetch @_\n"; $_[0]->[$_[1]] } |
180 | sub STORE { print "store @_\n"; $_[0]->[$_[1]] = $_[2] } |
181 | sub DESTROY { print "DESTROY \n"; undef @{$_[0]}; } |
182 | } |
183 | |
184 | eval 'tie @h, FAKEARRAY, fred' ; |
185 | tie @h, FAKEARRAY, fred ; |
186 | EXPECT |
187 | TIEARRAY FAKEARRAY fred |
188 | TIEARRAY FAKEARRAY fred |
189 | DESTROY |
190 | ######## |
191 | BEGIN { die "phooey\n" } |
192 | EXPECT |
193 | phooey |
194 | BEGIN failed--compilation aborted at - line 1. |
195 | ######## |
196 | BEGIN { 1/$zero } |
197 | EXPECT |
198 | Illegal division by zero at - line 1. |
199 | BEGIN failed--compilation aborted at - line 1. |
200 | ######## |
201 | BEGIN { undef = 0 } |
202 | EXPECT |
203 | Modification of a read-only value attempted at - line 1. |
204 | BEGIN failed--compilation aborted at - line 1. |
a7adf1f0 |
205 | ######## |
206 | { |
207 | package foo; |
208 | sub PRINT { |
209 | shift; |
210 | print join(' ', reverse @_)."\n"; |
211 | } |
46fc3d4c |
212 | sub PRINTF { |
213 | shift; |
214 | my $fmt = shift; |
215 | print sprintf($fmt, @_)."\n"; |
216 | } |
a7adf1f0 |
217 | sub TIEHANDLE { |
218 | bless {}, shift; |
219 | } |
58f51617 |
220 | sub READLINE { |
221 | "Out of inspiration"; |
222 | } |
a7adf1f0 |
223 | sub DESTROY { |
224 | print "and destroyed as well\n"; |
2ae324a7 |
225 | } |
226 | sub READ { |
227 | shift; |
228 | print STDOUT "foo->can(READ)(@_)\n"; |
229 | return 100; |
230 | } |
231 | sub GETC { |
232 | shift; |
233 | print STDOUT "Don't GETC, Get Perl\n"; |
234 | return "a"; |
235 | } |
a7adf1f0 |
236 | } |
237 | { |
238 | local(*FOO); |
239 | tie(*FOO,'foo'); |
240 | print FOO "sentence.", "reversed", "a", "is", "This"; |
58f51617 |
241 | print "-- ", <FOO>, " --\n"; |
2ae324a7 |
242 | my($buf,$len,$offset); |
243 | $buf = "string"; |
244 | $len = 10; $offset = 1; |
245 | read(FOO, $buf, $len, $offset) == 100 or die "foo->READ failed"; |
246 | getc(FOO) eq "a" or die "foo->GETC failed"; |
46fc3d4c |
247 | printf "%s is number %d\n", "Perl", 1; |
a7adf1f0 |
248 | } |
249 | EXPECT |
250 | This is a reversed sentence. |
58f51617 |
251 | -- Out of inspiration -- |
2ae324a7 |
252 | foo->can(READ)(string 10 1) |
253 | Don't GETC, Get Perl |
46fc3d4c |
254 | Perl is number 1 |
a7adf1f0 |
255 | and destroyed as well |
a6006777 |
256 | ######## |
257 | my @a; $a[2] = 1; for (@a) { $_ = 2 } print "@a\n" |
258 | EXPECT |
259 | 2 2 2 |
260 | ######## |
261 | @a = ($a, $b, $c, $d) = (5, 6); |
262 | print "ok\n" |
263 | if ($a[0] == 5 and $a[1] == 6 and !defined $a[2] and !defined $a[3]); |
264 | EXPECT |
265 | ok |
266 | ######## |
267 | print "ok\n" if (1E2<<1 == 200 and 3E4<<3 == 240000); |
268 | EXPECT |
269 | ok |
270 | ######## |
8ebc5c01 |
271 | print "ok\n" if ("\0" lt "\xFF"); |
a6006777 |
272 | EXPECT |
273 | ok |
274 | ######## |
275 | open(H,'op/misc.t'); # must be in the 't' directory |
276 | stat(H); |
277 | print "ok\n" if (-e _ and -f _ and -r _); |
278 | EXPECT |
279 | ok |
280 | ######## |
281 | sub thing { 0 || return qw(now is the time) } |
282 | print thing(), "\n"; |
283 | EXPECT |
284 | nowisthetime |
285 | ######## |
286 | $ren = 'joy'; |
287 | $stimpy = 'happy'; |
288 | { local $main::{ren} = *stimpy; print $ren, ' ' } |
289 | print $ren, "\n"; |
290 | EXPECT |
291 | happy joy |
292 | ######## |
293 | $stimpy = 'happy'; |
294 | { local $main::{ren} = *stimpy; print ${'ren'}, ' ' } |
295 | print +(defined(${'ren'}) ? 'oops' : 'joy'), "\n"; |
296 | EXPECT |
297 | happy joy |
298 | ######## |
299 | package p; |
300 | sub func { print 'really ' unless wantarray; 'p' } |
301 | sub groovy { 'groovy' } |
302 | package main; |
303 | print p::func()->groovy(), "\n" |
304 | EXPECT |
305 | really groovy |
306 | ######## |
d53f8f1c |
307 | @list = ([ 'one', 1 ], [ 'two', 2 ]); |
308 | sub func { $num = shift; (grep $_->[1] == $num, @list)[0] } |
309 | print scalar(map &func($_), 1 .. 3), " ", |
310 | scalar(map scalar &func($_), 1 .. 3), "\n"; |
311 | EXPECT |
312 | 2 3 |
313 | ######## |
44a8e56a |
314 | ($k, $s) = qw(x 0); |
315 | @{$h{$k}} = qw(1 2 4); |
316 | for (@{$h{$k}}) { $s += $_; delete $h{$k} if ($_ == 2) } |
317 | print "bogus\n" unless $s == 7; |
318 | ######## |
319 | my $a = 'outer'; |
320 | eval q[ my $a = 'inner'; eval q[ print "$a " ] ]; |
321 | eval { my $x = 'peace'; eval q[ print "$x\n" ] } |
322 | EXPECT |
323 | inner peace |
774d564b |
324 | ######## |
325 | -w |
326 | $| = 1; |
327 | sub foo { |
328 | print "In foo1\n"; |
329 | eval 'sub foo { print "In foo2\n" }'; |
330 | print "Exiting foo1\n"; |
331 | } |
332 | foo; |
333 | foo; |
334 | EXPECT |
335 | In foo1 |
336 | Subroutine foo redefined at (eval 1) line 1. |
337 | Exiting foo1 |
338 | In foo2 |
339 | ######## |
340 | $s = 0; |
341 | map {#this newline here tickles the bug |
342 | $s += $_} (1,2,4); |
343 | print "eat flaming death\n" unless ($s == 7); |
1ca7b98a |
344 | ######## |
345 | sub foo { local $_ = shift; split; @_ } |
346 | @x = foo(' x y z '); |
347 | print "you die joe!\n" unless "@x" eq 'x y z'; |
c277df42 |
348 | ######## |
349 | /(?{"{"})/ # Check it outside of eval too |
350 | EXPECT |
2cd61cdb |
351 | Sequence (?{...}) not terminated or not {}-balanced at - line 1, within pattern |
79eeca27 |
352 | Sequence (?{...}) not terminated or not {}-balanced before HERE mark in regex m/(?{ << HERE "{"})/ at - line 1. |
c277df42 |
353 | ######## |
354 | /(?{"{"}})/ # Check it outside of eval too |
355 | EXPECT |
d98d5fff |
356 | Unmatched right curly bracket at (re_eval 1) line 1, at end of line |
c277df42 |
357 | syntax error at (re_eval 1) line 1, near ""{"}" |
2cd61cdb |
358 | Compilation failed in regexp at - line 1. |
0da4822f |
359 | ######## |
ff689196 |
360 | BEGIN { @ARGV = qw(a b c d e) } |
0da4822f |
361 | BEGIN { print "argv <@ARGV>\nbegin <",shift,">\n" } |
362 | END { print "end <",shift,">\nargv <@ARGV>\n" } |
363 | INIT { print "init <",shift,">\n" } |
7d30b5c4 |
364 | CHECK { print "check <",shift,">\n" } |
0da4822f |
365 | EXPECT |
ff689196 |
366 | argv <a b c d e> |
0da4822f |
367 | begin <a> |
7d30b5c4 |
368 | check <b> |
ff689196 |
369 | init <c> |
370 | end <d> |
371 | argv <e> |
4599a1de |
372 | ######## |
3500f679 |
373 | -l |
374 | # fdopen from a system descriptor to a system descriptor used to close |
375 | # the former. |
376 | open STDERR, '>&=STDOUT' or die $!; |
75642110 |
377 | select STDOUT; $| = 1; print fileno STDOUT or die $!; |
378 | select STDERR; $| = 1; print fileno STDERR or die $!; |
3500f679 |
379 | EXPECT |
380 | 1 |
381 | 2 |
382 | ######## |
20408e3c |
383 | -w |
384 | sub testme { my $a = "test"; { local $a = "new test"; print $a }} |
385 | EXPECT |
386 | Can't localize lexical variable $a at - line 2. |
387 | ######## |
51ae5c03 |
388 | package X; |
389 | sub ascalar { my $r; bless \$r } |
390 | sub DESTROY { print "destroyed\n" }; |
391 | package main; |
392 | *s = ascalar X; |
393 | EXPECT |
394 | destroyed |
395 | ######## |
396 | package X; |
397 | sub anarray { bless [] } |
398 | sub DESTROY { print "destroyed\n" }; |
399 | package main; |
400 | *a = anarray X; |
401 | EXPECT |
402 | destroyed |
403 | ######## |
404 | package X; |
405 | sub ahash { bless {} } |
406 | sub DESTROY { print "destroyed\n" }; |
407 | package main; |
408 | *h = ahash X; |
409 | EXPECT |
410 | destroyed |
411 | ######## |
412 | package X; |
413 | sub aclosure { my $x; bless sub { ++$x } } |
414 | sub DESTROY { print "destroyed\n" }; |
415 | package main; |
416 | *c = aclosure X; |
417 | EXPECT |
418 | destroyed |
419 | ######## |
420 | package X; |
421 | sub any { bless {} } |
422 | my $f = "FH000"; # just to thwart any future optimisations |
ded8aa31 |
423 | sub afh { select select ++$f; my $r = *{$f}{IO}; delete $X::{$f}; bless $r } |
51ae5c03 |
424 | sub DESTROY { print "destroyed\n" } |
425 | package main; |
426 | $x = any X; # to bump sv_objcount. IO objs aren't counted?? |
427 | *f = afh X; |
428 | EXPECT |
429 | destroyed |
430 | destroyed |
431 | ######## |
ebf99b04 |
432 | BEGIN { |
433 | $| = 1; |
434 | $SIG{__WARN__} = sub { |
435 | eval { print $_[0] }; |
436 | die "bar\n"; |
437 | }; |
438 | warn "foo\n"; |
439 | } |
440 | EXPECT |
441 | foo |
442 | bar |
443 | BEGIN failed--compilation aborted at - line 8. |
8feb4e9f |
444 | ######## |
445 | package X; |
446 | @ISA='Y'; |
447 | sub new { |
448 | my $class = shift; |
449 | my $self = { }; |
450 | bless $self, $class; |
451 | my $init = shift; |
452 | $self->foo($init); |
453 | print "new", $init; |
454 | return $self; |
455 | } |
456 | sub DESTROY { |
457 | my $self = shift; |
458 | print "DESTROY", $self->foo; |
459 | } |
460 | package Y; |
461 | sub attribute { |
462 | my $self = shift; |
463 | my $var = shift; |
464 | if (@_ == 0) { |
465 | return $self->{$var}; |
466 | } elsif (@_ == 1) { |
467 | $self->{$var} = shift; |
468 | } |
469 | } |
470 | sub AUTOLOAD { |
471 | $AUTOLOAD =~ /::([^:]+)$/; |
472 | my $method = $1; |
473 | splice @_, 1, 0, $method; |
474 | goto &attribute; |
475 | } |
476 | package main; |
477 | my $x = X->new(1); |
478 | for (2..3) { |
479 | my $y = X->new($_); |
480 | print $y->foo; |
481 | } |
482 | print $x->foo; |
483 | EXPECT |
484 | new1new22DESTROY2new33DESTROY31DESTROY1 |
dfad63ad |
485 | ######## |
486 | re(); |
487 | sub re { |
14455d6c |
488 | my $re = join '', eval 'qr/(??{ $obj->method })/'; |
dfad63ad |
489 | $re; |
490 | } |
491 | EXPECT |
1aff0e91 |
492 | ######## |
493 | use strict; |
494 | my $foo = "ZZZ\n"; |
495 | END { print $foo } |
496 | EXPECT |
497 | ZZZ |
498 | ######## |
499 | eval ' |
500 | use strict; |
501 | my $foo = "ZZZ\n"; |
502 | END { print $foo } |
503 | '; |
504 | EXPECT |
505 | ZZZ |
7399586d |
506 | ######## |
507 | -w |
508 | if (@ARGV) { print "" } |
509 | else { |
510 | if ($x == 0) { print "" } else { print $x } |
511 | } |
512 | EXPECT |
b89fed5f |
513 | Use of uninitialized value in numeric eq (==) at - line 4. |
1d76a5c3 |
514 | ######## |
515 | $x = sub {}; |
516 | foo(); |
517 | sub foo { eval { return }; } |
518 | print "ok\n"; |
519 | EXPECT |
520 | ok |
07447971 |
521 | ######## |
522 | my @l = qw(hello.* world); |
523 | my $x; |
524 | |
525 | foreach $x (@l) { |
526 | print "before - $x\n"; |
527 | $x = "\Q$x\E"; |
528 | print "quotemeta - $x\n"; |
529 | $x = "\u$x"; |
530 | print "ucfirst - $x\n"; |
531 | $x = "\l$x"; |
532 | print "lcfirst - $x\n"; |
533 | $x = "\U$x\E"; |
534 | print "uc - $x\n"; |
535 | $x = "\L$x\E"; |
536 | print "lc - $x\n"; |
537 | } |
538 | EXPECT |
539 | before - hello.* |
540 | quotemeta - hello\.\* |
541 | ucfirst - Hello\.\* |
542 | lcfirst - hello\.\* |
543 | uc - HELLO\.\* |
544 | lc - hello\.\* |
545 | before - world |
546 | quotemeta - world |
547 | ucfirst - World |
548 | lcfirst - world |
549 | uc - WORLD |
550 | lc - world |
92d29cee |
551 | ######## |
552 | sub f { my $a = 1; my $b = 2; my $c = 3; my $d = 4; next } |
553 | my $x = "foo"; |
554 | { f } continue { print $x, "\n" } |
555 | EXPECT |
556 | foo |
6a7129a1 |
557 | ######## |
558 | sub C () { 1 } |
559 | sub M { $_[0] = 2; } |
560 | eval "C"; |
561 | M(C); |
562 | EXPECT |
563 | Modification of a read-only value attempted at - line 2. |
00c29ff8 |
564 | ######## |
565 | print qw(ab a\b a\\b); |
566 | EXPECT |
567 | aba\ba\b |
dd8482fc |
568 | ######## |
569 | # This test is here instead of pragma/locale.t because |
570 | # the bug depends on in the internal state of the locale |
571 | # settings and pragma/locale messes up that state pretty badly. |
572 | # We need a "fresh run". |
c9f931b8 |
573 | BEGIN { |
574 | eval { require POSIX }; |
575 | if ($@) { |
576 | exit(0); # running minitest? |
577 | } |
578 | } |
dd8482fc |
579 | use Config; |
580 | my $have_setlocale = $Config{d_setlocale} eq 'define'; |
dd8482fc |
581 | $have_setlocale = 0 if $@; |
582 | # Visual C's CRT goes silly on strings of the form "en_US.ISO8859-1" |
583 | # and mingw32 uses said silly CRT |
584 | $have_setlocale = 0 if $^O eq 'MSWin32' && $Config{cc} =~ /^(cl|gcc)/i; |
585 | exit(0) unless $have_setlocale; |
586 | my @locales; |
587 | if (-x "/usr/bin/locale" && open(LOCALES, "/usr/bin/locale -a|")) { |
588 | while(<LOCALES>) { |
589 | chomp; |
590 | push(@locales, $_); |
591 | } |
592 | close(LOCALES); |
593 | } |
594 | exit(0) unless @locales; |
595 | for (@locales) { |
596 | use POSIX qw(locale_h); |
597 | use locale; |
88e7acd2 |
598 | setlocale(LC_NUMERIC, $_) or next; |
dd8482fc |
599 | my $s = sprintf "%g %g", 3.1, 3.1; |
600 | next if $s eq '3.1 3.1' || $s =~ /^(3.+1) \1$/; |
601 | print "$_ $s\n"; |
602 | } |
603 | EXPECT |
b927783e |
604 | ######## |
605 | die qr(x) |
606 | EXPECT |
607 | (?-xism:x) at - line 1. |
608 | ######## |
7ef822cd |
609 | # 20001210.003 mjd@plover.com |
610 | format REMITOUT_TOP = |
611 | FOO |
612 | . |
613 | |
614 | format REMITOUT = |
615 | BAR |
616 | . |
617 | |
618 | # This loop causes a segv in 5.6.0 |
619 | for $lineno (1..61) { |
620 | write REMITOUT; |
621 | } |
622 | |
623 | print "It's OK!"; |
624 | EXPECT |
625 | It's OK! |