chibicc
chibicc copied to clipboard
redeclaration as different kind of symbol is not reported
#include <stdio.h>
int x;
int x()
{
puts("Hello World");
}
int main()
{
x();
}
This should not compile.
Apparently other kinds of redefinition are not reported either
#include <stdio.h>
int f(int x)
{
int x;
puts("Hello world");
}
int main()
{
f(0);
}