diff options
| author | hachem <im@hachem.wtf> | 2025-12-21 05:46:36 +0100 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-12-21 05:46:36 +0100 |
| commit | d660dc5748656e7ddc7b3343c96d9a7bdaadd502 (patch) | |
| tree | 1b68729fdb8a5f2d0db62b6eabac90b76efba4d8 /test/hello.cpp | |
| parent | 15b4b64475138a810d4c4dde485c08603ceb592a (diff) | |
refactor: reorganize tests
Diffstat (limited to 'test/hello.cpp')
| -rw-r--r-- | test/hello.cpp | 16 |
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); +} |
