From 8fac505536f69b3f3864dcd09979bfc9cc3ce471 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 21 Oct 2021 13:14:44 -0700 Subject: expr: Implement binary integer constants These are in the latest C23 draft. --- test/binary-constant.c | 1 + test/binary-constant.qbe | 1 + 2 files changed, 2 insertions(+) create mode 100644 test/binary-constant.c create mode 100644 test/binary-constant.qbe (limited to 'test') diff --git a/test/binary-constant.c b/test/binary-constant.c new file mode 100644 index 0000000..234e116 --- /dev/null +++ b/test/binary-constant.c @@ -0,0 +1 @@ +int x = 0b11100100; diff --git a/test/binary-constant.qbe b/test/binary-constant.qbe new file mode 100644 index 0000000..d72a76c --- /dev/null +++ b/test/binary-constant.qbe @@ -0,0 +1 @@ +export data $x = align 4 { w 228, } -- cgit v1.2.3