From be8887e8061caad34d6fdfd32c6e4d7e3fca4b08 Mon Sep 17 00:00:00 2001
From: Ferenc Szontágh <szf@fsociety.hu>
Date: Fri, 18 Apr 2025 09:14:56 +0000
Subject: [PATCH] add function test script

---
 test_scripts/function_test.vs |   16 ++++++++++++++++
 CMakeLists.txt                |    5 +++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 688a842..ddc26dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -112,6 +112,11 @@
 configure_file("cmake/options.h.in" "include/options.h" @ONLY)
 configure_file("test_scripts/test1.vs" "test_scripts/test1.vs" @ONLY)
 configure_file("test_scripts/test2.vs" "test_scripts/test2.vs" @ONLY)
+configure_file("test_scripts/test2.vs" "test_scripts/test2.vs" @ONLY)
+configure_file("test_scripts/function_test.vs" "test_scripts/function_test.vs" @ONLY)
+
+
+
 
 include_directories(${CMAKE_BINARY_DIR}/include ${CMAKE_SOURCE_DIR}/src)
 
diff --git a/test_scripts/function_test.vs b/test_scripts/function_test.vs
new file mode 100644
index 0000000..6f344b0
--- /dev/null
+++ b/test_scripts/function_test.vs
@@ -0,0 +1,16 @@
+int $num = 123;
+double $double = 12.3;
+string $variable = "This is a string content with a number: 123";
+
+string $variable2 = $variable;
+
+function test = (int $i) {
+    int $result = $i + 1;
+}
+
+function increment = (int $i) int {
+    return $i + 1;
+}
+
+
+increment(1);
\ No newline at end of file

--
Gitblit v1.9.3