aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/1-source/module_join_known_name_not_module.zc
blob: 3c98fb552dd241f5e3a5fc62815f478092b793db (plain) (blame)
1
2
3
4
5
6
7
// expect: 7/
// spec 1.3.3: x.y with x not a known module is field access
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
struct pt { int x; int y; }
fn main() { pt* q = rt.new(pt); q.y = 7; pn(q.y); rt.free(q); return 0; }
// zc0: skip