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

Linking should fail when `main` is defined both in C and C++.

Open h0nzZik opened this issue 5 years ago • 0 comments

This program should not link:

// a.c
int main(){return 0;}
// b.C
int main(){return 1;}

But with kcc -fno-native-compilation it builds and executes some main.

h0nzZik avatar Feb 27 '20 10:02 h0nzZik