[pulse] fix C test not calling the functions it was supposed to

Summary:
The test compiled with warnings, not sure how to prevent this in the
future as `infer` will suppress all warnings anyway (I wanted to add
`-Werror` to the test Makefile but that was defeated by infer itself).

Reviewed By: ezgicicek

Differential Revision: D26019682

fbshipit-source-id: d7f8fc2d8
master
Jules Villard 4 years ago committed by Facebook GitHub Bot
parent be39e74bd4
commit 12bcf119c8

@ -15,8 +15,8 @@ void if_freed_invalid_latent(int x, int* y) {
void FN_call_if_freed_invalid_latent(int x) {
if (x > 0) {
if_freed_invalid(x, NULL);
if_freed_invalid_latent(x, NULL);
}
}
void FN_call_if_freed_invalid2_bad() { call_if_freed_invalid(7); }
void FN_call_if_freed_invalid2_bad() { FN_call_if_freed_invalid_latent(7); }

Loading…
Cancel
Save