diff options
| author | hachem <im@hachem.wtf> | 2026-09-04 05:46:36 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-04 05:46:36 +0200 |
| commit | d3a1b908fd3b0c47da2c33c16d18ebeb00da3b97 (patch) | |
| tree | 1e8861de97ebd0c580a0cfaa4c759cf3e5be8e3b /test/hello.cpp | |
| parent | 9023d106c61db0be0de6460a397bbad42bbc3d96 (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); +} |
