aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/5-declarations/global_const_expr_init.zc
blob: 64a4d0686e8f0a11e31c33ea9dace7eada0e822f (plain) (blame)
1
2
3
4
5
6
7
// expect: 3/
// spec 5.3.2 and 3.14.1 (c precedence: 1+(2*2)-2)
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
int g = 1 + 2 * 2 - 2;
fn main() { pn(g); return 0; }
// zc0: skip