Hi,
Here is the example code that was not suppose to compile because of having two body of function test which return pointer of integer. But it compile fine in tiny c
#include <stdlib.h>
int (*test())
{
int *x=malloc(sizeof(int));
*x=10;
return x;
}
int *test()
{
int
*y=malloc(sizeof(int));
*y=11;
return y;
}
int main()
{
int z=*test();
return 0;
}
This code fails both in gcc and visual studio.
I am using version: 0.9.25
Sincerely,
Abdul Wadud Mohammad Mohibur Rashid,
email: address@hidden
Mobile Ph. no. 08030040355