diff test/testc3.py @ 303:be7f60545368

Final fixups
author Windel Bouwman
date Fri, 06 Dec 2013 12:37:48 +0100
parents 6753763d3bec
children b145f8e6050b
line wrap: on
line diff
--- a/test/testc3.py	Fri Dec 06 12:09:35 2013 +0100
+++ b/test/testc3.py	Fri Dec 06 12:37:48 2013 +0100
@@ -104,6 +104,26 @@
         """
         self.expectErrors(snippet, [5, 6])
 
+    def testReturn(self):
+        snippet = """
+         module testreturn;
+         function void t()
+         {
+            return;
+         }
+        """
+        self.expectOK(snippet)
+
+    def testReturn2(self):
+        snippet = """
+         module testreturn;
+         function int t()
+         {
+            return 2;
+         }
+        """
+        self.expectOK(snippet)
+
     def testExpressions(self):
         snippet = """
          module test;