diff options
| -rw-r--r-- | tests/projects/other/cppfront/.gitignore | 8 | ||||
| -rw-r--r-- | tests/projects/other/cppfront/src/main.cpp2 | 7 | ||||
| -rw-r--r-- | tests/projects/other/cppfront/xmake.lua | 6 |
3 files changed, 21 insertions, 0 deletions
diff --git a/tests/projects/other/cppfront/.gitignore b/tests/projects/other/cppfront/.gitignore new file mode 100644 index 000000000..152105761 --- /dev/null +++ b/tests/projects/other/cppfront/.gitignore @@ -0,0 +1,8 @@ +# Xmake cache +.xmake/ +build/ + +# MacOS Cache +.DS_Store + + 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; +} diff --git a/tests/projects/other/cppfront/xmake.lua b/tests/projects/other/cppfront/xmake.lua new file mode 100644 index 000000000..5499ee547 --- /dev/null +++ b/tests/projects/other/cppfront/xmake.lua @@ -0,0 +1,6 @@ +add_rules("mode.debug", "mode.release") + +target("test") + set_kind("binary") + add_files("src/*.cpp2") + |
