From 6cb4382b0128942f4ba57ab26021be1e5715f2bc Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 14 Sep 2025 19:23:21 +0200 Subject: codegen: float cmp, ior; frontend: fix cond expr bug --- test/test4.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/test4.c (limited to 'test/test4.c') 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; +} + -- cgit v1.2.3