aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/const_expr_shift.zc
blob: 6b7e056d13aa579dafea0e275c9aef2f2fc76596 (plain) (blame)
1
2
3
4
5
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; }