Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/test-programs/src/bin/dwarf_cold_block.c
3068 views
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
22