aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test4.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-09-14 19:23:21 +0200
committerlemon <lsof@mailbox.org>2025-09-14 19:23:21 +0200
commit6cb4382b0128942f4ba57ab26021be1e5715f2bc (patch)
tree0b63731286acbe503981958930aeae93816b6b34 /test/test4.c
parent7a318363ec4fdcd80d9d0154cef393c9bf205d5e (diff)
codegen: float cmp, ior; frontend: fix cond expr bug
Diffstat (limited to 'test/test4.c')
-rw-r--r--test/test4.c19
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;
+}
+