aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-10-21 13:14:44 -0700
committerMichael Forney <mforney@mforney.org>2021-10-21 13:15:11 -0700
commit8fac505536f69b3f3864dcd09979bfc9cc3ce471 (patch)
tree432855fd676b478d6899dd1cf04458c11bd27c2d /test
parent9f21e00b458858198381d8e4ab4141ecf2fa2bbe (diff)
expr: Implement binary integer constants
These are in the latest C23 draft.
Diffstat (limited to 'test')
-rw-r--r--test/binary-constant.c1
-rw-r--r--test/binary-constant.qbe1
2 files changed, 2 insertions, 0 deletions
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, }