summaryrefslogtreecommitdiff
path: root/tests/misc/test_const_hex.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/test_const_hex.zc')
-rw-r--r--tests/misc/test_const_hex.zc13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/misc/test_const_hex.zc b/tests/misc/test_const_hex.zc
new file mode 100644
index 0000000..102207d
--- /dev/null
+++ b/tests/misc/test_const_hex.zc
@@ -0,0 +1,13 @@
+
+def CONST_HEX = 0x10;
+def CONST_OCT = 010;
+
+fn main() {
+ if (CONST_HEX != 16) {
+ return 1;
+ }
+ if (CONST_OCT != 8) {
+ return 2;
+ }
+ return 0;
+}