[svn:parrot] r48766 - trunk/t/compilers/imcc/syn

nwellnhof at svn.parrot.org nwellnhof at svn.parrot.org
Thu Sep 2 13:38:05 UTC 2010


Author: nwellnhof
Date: Thu Sep  2 13:38:04 2010
New Revision: 48766
URL: https://trac.parrot.org/parrot/changeset/48766

Log:
[imcc] Test case for TT #1701

Modified:
   trunk/t/compilers/imcc/syn/const.t

Modified: trunk/t/compilers/imcc/syn/const.t
==============================================================================
--- trunk/t/compilers/imcc/syn/const.t	Thu Sep  2 13:16:56 2010	(r48765)
+++ trunk/t/compilers/imcc/syn/const.t	Thu Sep  2 13:38:04 2010	(r48766)
@@ -9,7 +9,7 @@
 
 use Test::More;
 use Parrot::Config;
-use Parrot::Test tests => 34;
+use Parrot::Test tests => 35;
 
 pir_output_is( <<'CODE', <<'OUT', "globalconst 1" );
 
@@ -592,6 +592,17 @@
 12
 OUT
 
+pir_error_output_like( <<'CODE', <<'OUT', "" );
+.sub 'bus_error'
+    .local string hello
+    hello = "'Allo, 'allo, 'allo."
+    .const string hello = "Hello, Polly."
+    say hello
+.end
+CODE
+/^error:imcc:syntax error, duplicated IDENTIFIER/
+OUT
+
 # Local Variables:
 #   mode: cperl
 #   cperl-indent-level: 4


More information about the parrot-commits mailing list