aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/9-appendix-b/b2_12_as_int_star.zc
blob: fc12792e2b3d3cc4af0e5cad4c9fdae5cb253b9e (plain) (blame)
1
2
3
4
5
6
// expect: 6/
// spec appendix b.2.12: x as int * y should multiply
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() { int x = 2; int y = 3; pn(x as int * y); return 0; }
// zc0: skip