Skip to content

Commit

Permalink
[test] fix GH #335 test todo, parser error on new INTVAL
Browse files Browse the repository at this point in the history
Since INTVAL is a valid label name, and we do not want to scan down to look for all
existing labels, we just test for the existing error.
  • Loading branch information
Reini Urban committed Oct 13, 2014
1 parent a563e37 commit 7c0f94c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/compilers/imcc/syn/clash.t
@@ -1,5 +1,5 @@
#!perl
# Copyright (C) 2001-2009, Parrot Foundation.
# Copyright (C) 2001-2014, Parrot Foundation.

use strict;
use warnings;
Expand Down Expand Up @@ -169,19 +169,19 @@ CODE
ok
OUT

pir_error_output_like( <<'CODE', <<'OUTPUT', 'new with a native type, no string constant', todo => 'GH #335 not done yet' );
pir_error_output_like( <<'CODE', <<'OUTPUT', 'new with unknown sub_label_op, no string constant');
.sub test :main
$P1 = new INTVAL
$P1 = new INTVAL
print "never\n"
end
.end
CODE
/error:imcc:syntax error, unexpected IDENTIFIER \('INTVAL'\)/
/error:imcc:The opcode 'new_p_ic' \(new<2>\) was not found/
OUTPUT

pir_error_output_like( <<'CODE', <<'OUTPUT', "new with an unknown class" );
.sub test :main
$P1 = new 'INTVAL'
$P1 = new 'INTVAL'
print "never\n"
end
.end
Expand Down

0 comments on commit 7c0f94c

Please sign in to comment.