our @InitFileCode = ();
our $FH = Symbol::gensym();
-our $proto_re = "[" . quotemeta('\$%&*@;[]') . "]";
+our $proto_re = "[" . quotemeta('\$%&*@;[]_') . "]";
our $Overload = 0;
our $errors = 0;
our $Fallback = '&PL_sv_undef';
#!/usr/bin/perl
use strict;
use warnings;
-use Test::More tests => 5;
+use Test::More tests => 6;
use lib qw( lib );
use ExtUtils::ParseXS::Utilities qw(
valid_proto_string
$input = '[alpha]';
$output = valid_proto_string($input);
is( $output, 0, "Got expected value for <$input>" );
+
+$input = '[_]';
+$output = valid_proto_string($input);
+is( $output, $input, "Got expected value for <$input>" );
+