blob: ab112175d8b6a75ac03842947c6a4b812cbe3078 (
plain) (
blame)
1
2
3
4
5
|
// expect: 6/
// spec 3.2.3: (x as int) * y multiplies
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; }
|