Files
tinycc/tests/tests2/133_old_func.c
herman ten brugge e6ea0d0424 tccgen: fix several problems
Fix 'void func2(char *(*md)(char *md))' declaration.
Fix global array and local extern array problems.
Fix scope problem with old function declaration.
Fix 'typedef int t[]' declaration. Empty size should remain.
2025-08-30 07:13:49 +02:00

42 lines
479 B
C

int printf(const char *s, ...);
float fx(x)
float x;
{
return 2.0 * x;
}
void func(float a);
void func3(struct p { int a; int b; } *q) {
}
void func4(q)
struct p { int a; int b; int c; } *q;
{
}
struct p { int a; int b; int c; int d; };
int
main(void)
{
float fy();
printf("%g %g\n", fx(2.0), fy(10.0));
printf("%g %g\n", fx(2.0f), fy(10.0f));
func(1);
}
float fy(x)
float x;
{
return 3.0 * x;
}
void func(a)
float a;
{
printf("%g\n", a);
}