p4raw-id: //depot/perl@29039
require "./test.pl";
}
-plan(tests => 30);
+plan(tests => 32);
sub f($$_) { my $x = shift; is("@_", $x) }
eval q{ sub wrong2 ($__); wrong2(1,2) };
like( $@, qr/Malformed prototype for main::wrong2/, 'wrong2' );
+
+sub opt ($;_) { is($_[0], "seen"); ok(!defined $_[1], "; has precedence over _") }
+opt("seen");