diff options
| author | 2025-09-14 19:23:21 +0200 | |
|---|---|---|
| committer | 2025-09-14 19:23:21 +0200 | |
| commit | 6cb4382b0128942f4ba57ab26021be1e5715f2bc (patch) | |
| tree | 0b63731286acbe503981958930aeae93816b6b34 /test/test4.c | |
| parent | 7a318363ec4fdcd80d9d0154cef393c9bf205d5e (diff) | |
codegen: float cmp, ior; frontend: fix cond expr bug
Diffstat (limited to 'test/test4.c')
| -rw-r--r-- | test/test4.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test4.c b/test/test4.c new file mode 100644 index 0000000..4a127d0 --- /dev/null +++ b/test/test4.c @@ -0,0 +1,19 @@ +int xor(int a) { + return a ^ 3 | 233333; +} + +int cmp(float x, float y) { + return x < y && x > 0.f; +} + +int main() { + int x = 42, + *a = &x, + **b = &a, + ***c = &b, + ****d = &c, + *****e = &d, + ******f = &e; + return ******f; +} + |