summaryrefslogtreecommitdiff
path: root/tests/projects/other/cppfront/src
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-29 23:00:23 +0800
committerruki <[email protected]>2023-08-29 23:00:23 +0800
commit990430ca785e293ee81ee39360581fda06de621b (patch)
tree7e90cca6d0d4119701e167302ca908437869add8 /tests/projects/other/cppfront/src
parentcc0bb72f305ed4b1df69bb3d4c77583ef1bc77db (diff)
add cppfront test
Diffstat (limited to 'tests/projects/other/cppfront/src')
-rw-r--r--tests/projects/other/cppfront/src/main.cpp27
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/projects/other/cppfront/src/main.cpp2 b/tests/projects/other/cppfront/src/main.cpp2
new file mode 100644
index 000000000..168a1773a
--- /dev/null
+++ b/tests/projects/other/cppfront/src/main.cpp2
@@ -0,0 +1,7 @@
+main: () -> int =
+ println("Hello world!\n");
+
+println: (msg: _) -> int = {
+ std::cout << "msg: " << msg;
+ return 0;
+}