1 struct myfile {
2   int data;
3   void (*f)();
4 } myfile;
5 
6 void f() {}
7 
8 int foo(struct myfile *f1) {
9   f1->f();
10   if (f1->data == 42)
11     return 0;
12   return 1;
13 }
14 
15 int main() {
16   struct myfile f1;
17   f1.f = &f;
18   f1.data = 42;
19   return foo(&f1);
20 }
21