c-semantics icon indicating copy to clipboard operation
c-semantics copied to clipboard

Linking should fail when a static function is used but not declared

Open h0nzZik opened this issue 5 years ago • 0 comments

The following programs compiles and links successfully, but gets stuck at runtime:

static void foo();//{}
int main(){foo();}

But it should fail to link.

h0nzZik avatar Feb 20 '20 14:02 h0nzZik