aboutsummaryrefslogtreecommitdiff
path: root/test/hello.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-09-04 05:46:36 +0200
committerhachem <im@hachem.wtf>2026-09-04 05:46:36 +0200
commitd3a1b908fd3b0c47da2c33c16d18ebeb00da3b97 (patch)
tree1e8861de97ebd0c580a0cfaa4c759cf3e5be8e3b /test/hello.cpp
parent9023d106c61db0be0de6460a397bbad42bbc3d96 (diff)
refactor: reorganize tests
Diffstat (limited to 'test/hello.cpp')
-rw-r--r--test/hello.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/hello.cpp b/test/hello.cpp
new file mode 100644
index 0000000..9337000
--- /dev/null
+++ b/test/hello.cpp
@@ -0,0 +1,16 @@
+#include <print>
+
+auto add(int a, int b) -> int
+{
+ int result = a+b;
+ return result;
+}
+
+auto main() -> int
+{
+ int a = 50;
+ int b = 67;
+ int c = add(a, b);
+
+ std::println("{} + {} = {}", a, b, c);
+}