kframework/c-semantics

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

h0nzZik opened this issue · 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.