}
}
-plan(5);
+plan(7);
sub rc {
open RC, ">", ".perldb" or die $!;
}
}
+
+# Test [perl #61222]
+{
+ rc(
+ qq|
+ &parse_options("NonStop=0 TTY=db.out LineInfo=db.out");
+ \n|,
+
+ qq|
+ sub afterinit {
+ push(\@DB::typeahead,
+ 'm Pie',
+ 'q',
+ );
+ }\n|,
+ );
+
+ my $output = runperl(switches => [ '-d' ], stderr => 1, progfile => '../lib/perl5db/t/rt-61222');
+ my $contents;
+ {
+ local $/;
+ open I, "<", 'db.out' or die $!;
+ $contents = <I>;
+ close(I);
+ }
+ unlike($contents, qr/INCORRECT/, "[perl #61222]");
+}
+
+
+
+# Test for Proxy constants
+{
+ rc(
+ qq|
+ &parse_options("NonStop=0 TTY=db.out LineInfo=db.out");
+ \n|,
+
+ qq|
+ sub afterinit {
+ push(\@DB::typeahead,
+ 'm main->s1',
+ 'q',
+ );
+ }\n|,
+ );
+
+ my $output = runperl(switches => [ '-d' ], stderr => 1, progfile => '../lib/perl5db/t/proxy-constants');
+ is($output, "", "proxy constant subroutines");
+}
+
+
# clean up.
END {