aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/5-declarations/enum_member_names_earlier_b2.zc
blob: a0f82e7e7410fd767579523cc033afda980a3cb3 (plain) (blame)
1
2
3
4
5
6
7
// expect: 17/
// spec 2.8 and appendix b.2.2 (bug: rejected)
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
enum { HI = 16, LO = HI + 1 };
fn main() { pn(LO); return 0; }
// zc0: skip