Преглед на файлове

Added test voor last fix on return type checking.

Simon Polstra преди 10 години
родител
ревизия
54f311b48b
променени са 2 файла, в които са добавени 13 реда и са изтрити 0 реда
  1. 12 0
      test/nested_funs/functional/nested_func_return_type.cvc
  2. 1 0
      test/nested_funs/functional/nested_func_return_type.out

+ 12 - 0
test/nested_funs/functional/nested_func_return_type.cvc

@@ -0,0 +1,12 @@
+#include "civic.h"
+
+export int main() {
+    float f() {
+        return 1.1;
+    }
+
+    printFloat(f());
+    printNewlines(1);
+
+    return 0;
+}

+ 1 - 0
test/nested_funs/functional/nested_func_return_type.out

@@ -0,0 +1 @@
+1.100000