You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that foo is not identified as a possible call target, because the declaration is not compatible with the function pointer. It is, in fact, undefined behavior. From C99 standard:
[UB is when] a pointer is used to call a function whose type is not compatible with the pointed-to type (6.3.2.3).
However, in real programs, such calls can be found, so maybe we could relax our default policy about compatibility of function pointers.
The text was updated successfully, but these errors were encountered:
In the following program, slicer generates an empty main (w.r.t assertion):
The problem is that
foo
is not identified as a possible call target, because the declaration is not compatible with the function pointer. It is, in fact, undefined behavior. From C99 standard:However, in real programs, such calls can be found, so maybe we could relax our default policy about compatibility of function pointers.
The text was updated successfully, but these errors were encountered: