blob: 75ba07de16f788a6b291d752423901f084b91b63 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// expect: 5/
// spec 4.1.5: &aggregate counts as initializing the whole aggregate
include rt;
struct point { int x; int y; }
void pn(int x) { rt.put_n(x); rt.put_c(10); }
void fill(point* p) { p->x = 2; p->y = 3; }
fn main() {
point p;
fill(&p);
pn(p.x + p.y);
return 0;
}
// zc0: skip
|