diff options
| author | Baitinq <[email protected]> | 2025-05-04 23:11:05 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-05-04 23:11:09 +0200 |
| commit | c8b2865ec524e4774477c18e128522d89358a91d (patch) | |
| tree | 8d95f810def4746e923e3cfe62fb030c7a9ed12b /examples/6.5.src | |
| parent | Bootstrap: Iterate chars (diff) | |
| download | interpreter-c8b2865ec524e4774477c18e128522d89358a91d.tar.gz interpreter-c8b2865ec524e4774477c18e128522d89358a91d.tar.bz2 interpreter-c8b2865ec524e4774477c18e128522d89358a91d.zip | |
Examples: Add expected stdout and exit code
Diffstat (limited to 'examples/6.5.src')
| -rw-r--r-- | examples/6.5.src | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/6.5.src b/examples/6.5.src index 2820f70..5475bff 100644 --- a/examples/6.5.src +++ b/examples/6.5.src @@ -3,7 +3,17 @@ extern printf = (*i64, varargs) => i64; let main = () => i64 { let x = !(1 == 1); if !x { - printf("%d\n", x); + printf("Condition\n"); }; return 0; }; + +/* + +Expected stdout: + +Condition + +Expected return: 0 + +*/ |