Skip to content

Commit

Permalink
Add test for RT #127973
Browse files Browse the repository at this point in the history
Native strings can be as large as regular strings.
  • Loading branch information
MasterDuke17 committed Oct 9, 2017
1 parent a55c0f4 commit 919a2dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S02-types/native.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 93;
plan 94;

{
my int $x;
Expand Down Expand Up @@ -373,4 +373,8 @@ dies-ok { EVAL 'my str $x = Str;' }, '"my str $x = Str" dies';
dies-ok { sub (int $x) { say $x }(99999999999999999999) }, 'a too large argument for a native parameter should throw';
}

# RT #127973
{
eval-lives-ok 'my str $a = "a" x 2**32-1', 'native strings can be as large as regular strings';
}
# vim: ft=perl6

0 comments on commit 919a2dd

Please sign in to comment.