aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/5-declarations/struct_static_misspelled.zc
blob: 9986fde9fdc421b6bf6a2d433bece9176116e51a (plain) (blame)
1
2
3
4
5
6
7
// expect error: MAXX: is not a static function of this struct; did you mean 'MAX'?
// spec 5.5.6
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
struct s { int x; const MAX = 1; }
fn main() { pn(s.MAXX); return 0; }
// zc0: skip