aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/const_expr_shift.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conformance/3-expressions/const_expr_shift.zc')
-rw-r--r--tests/conformance/3-expressions/const_expr_shift.zc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/conformance/3-expressions/const_expr_shift.zc b/tests/conformance/3-expressions/const_expr_shift.zc
new file mode 100644
index 0000000..6b7e056
--- /dev/null
+++ b/tests/conformance/3-expressions/const_expr_shift.zc
@@ -0,0 +1,6 @@
+// expect: 16/1/
+include rt;
+void pn(int x) { rt.put_n(x); rt.put_c(10); }
+const S = 1 << 4;
+const T = 256 >> 8;
+fn main() { pn(S); pn(T); return 0; }