aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/op_greedy_compound_shift.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conformance/1-source/op_greedy_compound_shift.zc')
-rw-r--r--tests/conformance/1-source/op_greedy_compound_shift.zc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/conformance/1-source/op_greedy_compound_shift.zc b/tests/conformance/1-source/op_greedy_compound_shift.zc
new file mode 100644
index 0000000..697aad5
--- /dev/null
+++ b/tests/conformance/1-source/op_greedy_compound_shift.zc
@@ -0,0 +1,4 @@
+// expect: 12/3/
+include rt;
+void pn(int x) { rt.put_n(x); rt.put_c(10); }
+fn main() { int a = 3; a<<=2; pn(a); a>>=2; pn(a); return 0; }