This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [perl #19566] Perl 5.8.0 segfault
[perl5.git] / t / op / readline.t
1 #!./perl
2
3 BEGIN {
4     chdir 't';
5     @INC = '../lib';
6     require './test.pl';
7 }
8
9 plan tests => 1;
10
11 eval { for (\2) { $_ = <FH> } };
12 like($@, 'Modification of a read-only value attempted', '[perl #19566]');
13