Procházet zdrojové kódy

Added test voor last fix on return type checking.

Simon Polstra před 10 roky
rodič
revize
54f311b48b

+ 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