Skip to content

Commit

Permalink
Add test for RT #127176
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed May 8, 2016
1 parent 1804479 commit d2eb961
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion S10-packages/precompilation.t
Expand Up @@ -3,7 +3,7 @@ use lib 't/spec/packages';
use Test;
use Test::Util;

plan 39;
plan 40;

my @*MODULES; # needed for calling CompUnit::Repository::need directly
my $precomp-ext := $*VM.precomp-ext;
Expand Down Expand Up @@ -193,3 +193,15 @@ is-deeply @keys2, [<C D E F H K N P R S>], 'Twisty maze of dependencies, all dif
my $comp-unit = $*REPO.need(CompUnit::DependencySpecification.new(:short-name<RT125245>));
ok $comp-unit.precompiled, 'precomp of assignment to variable using subset type';
}
# RT #127176
{
is_run '',
{
out => '',
err => { not $_ ~~ / ( "SORRY!" .*) ** 2 / },
status => { $_ != 0 },
},
:compiler-args['-I', 't/spec/packages', '-M', 'RT127176'],
'no duplicate compilation error';
}
1 change: 1 addition & 0 deletions packages/RT127176.pm6
@@ -0,0 +1 @@
class RT127176 { blarg! };

0 comments on commit d2eb961

Please sign in to comment.