aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/call_static_and_const.zc
blob: d711488d75960405eeacafeaedfbf21846841a3f (plain) (blame)
1
2
3
4
5
6
// expect: 7/24/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
struct S { const MAX = 24; static fn seven() { return 7; } }
fn main() { pn(S.seven()); pn(S.MAX); return 0; }
// zc0: skip