aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/5-declarations/global_float_init_b7.zc
blob: 14d5204ba38b9dcf87ee91573014a927cd4ac9dd (plain) (blame)
1
2
3
4
5
6
7
// expect: 1/
// spec 5.3.2 and appendix b.2.7 (bug: rejected)
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
float g = 1.5;
fn main() { pn(g * 2.0 == 3.0); return 0; }
// zc0: skip