Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
struct A {
  void *a;
};

int f(struct A* obj) {
  obj->a = malloc(8);
  if (obj->a == 0) {
    return 0;
  }
  return 1;
}

int main() {
  struct A obj = { a: 0 };
  f(&obj);
}