소스 검색

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