[svn:parrot] r39383 - in branches/pmc_pct/compilers/pmcc/t: . data

bacek at svn.parrot.org bacek at svn.parrot.org
Thu Jun 4 12:57:57 UTC 2009


Author: bacek
Date: Thu Jun  4 12:57:57 2009
New Revision: 39383
URL: https://trac.parrot.org/parrot/changeset/39383

Log:
[pmcc] Add test for MULTIs

Added:
   branches/pmc_pct/compilers/pmcc/t/data/class27.pmc
Modified:
   branches/pmc_pct/compilers/pmcc/t/01-parse.t

Modified: branches/pmc_pct/compilers/pmcc/t/01-parse.t
==============================================================================
--- branches/pmc_pct/compilers/pmcc/t/01-parse.t	Thu Jun  4 12:57:27 2009	(r39382)
+++ branches/pmc_pct/compilers/pmcc/t/01-parse.t	Thu Jun  4 12:57:57 2009	(r39383)
@@ -8,7 +8,7 @@
     load_bytecode 'pmcc.pbc'
 
     .local int total
-    total = 27
+    total = 28
 
     plan(total)
     test_parse(total)

Added: branches/pmc_pct/compilers/pmcc/t/data/class27.pmc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/pmc_pct/compilers/pmcc/t/data/class27.pmc	Thu Jun  4 12:57:57 2009	(r39383)
@@ -0,0 +1,9 @@
+pmclass Integer {
+    MULTI PMC *add(Integer value, PMC *dest) {
+        SELF.decrement();
+    }
+    
+    MULTI PMC *add(DEFAULT value, PMC *dest) {
+        SELF.increment();
+    }
+}


More information about the parrot-commits mailing list