]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/msan/wrap_indirect_calls/caller.cc
1 // Indirectly call a bunch of functions.
7 typedef int (*F
)(int, int);
9 // A function in the same object.
10 int f_local(int x
, int y
) {
14 // A function in another object.
15 int f_other_object(int x
, int y
);
17 // A function in another DSO.
18 int f_dso(int x
, int y
);
20 // A function in another DSO that is replaced by the wrapper.
21 int f_replaced(int x
, int y
);
28 if (SLOW
) ++expected_cnt
;
32 assert(cnt
== expected_cnt
);
34 if (SLOW
) ++expected_cnt
;
38 assert(cnt
== expected_cnt
);
44 assert(cnt
== expected_cnt
);
50 assert(cnt
== expected_cnt
);