Skip to content

Commit

Permalink
Tests for RT #123789.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Apr 12, 2015
1 parent f7729ba commit 31ffc2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S02-types/native.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 39;
plan 42;

{
my int $x;
Expand Down Expand Up @@ -168,4 +168,9 @@ plan 39;
'int does not get confused with goldilocks number (high)';
}

# RT #123789 (ensure we die, not SEGV)
dies_ok { EVAL 'my int $x = Int;' }, '"my int $x = Int" dies';
dies_ok { EVAL 'my num $x = Num;' }, '"my num $x = Num" dies';
dies_ok { EVAL 'my str $x = Str;' }, '"my str $x = Str" dies';

# vim: ft=perl6

0 comments on commit 31ffc2c

Please sign in to comment.