Skip to content

Commit

Permalink
Test *% in sub MAIN does not cause a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 24, 2016
1 parent 897cc99 commit a26b352
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S06-other/main-usage.t
Expand Up @@ -3,7 +3,7 @@ use v6;
use lib 't/spec/packages';

use Test;
plan 29;
plan 30;

use Test::Util;

Expand Down Expand Up @@ -241,3 +241,7 @@ is_run 'sub MAIN(*@arg where { False }) { }; sub USAGE { print "USAGE called" }'
err => '',
},
"failed constraint check doesn't leak internal exception out to the user";

# RT #127621
is_run 'sub MAIN($, *%) { }', { err => '', }, :args['--help'],
'use of anon slurpy hash does not cause a crash';

0 comments on commit a26b352

Please sign in to comment.