tinycc/tests/tests2/133_old_func.c
herman ten brugge 19fdef46f9
Some checks failed
build and test / test-x86_64-linux (push) Has been cancelled
build and test / test-x86_64-osx (push) Has been cancelled
build and test / test-aarch64-osx (push) Has been cancelled
build and test / test-x86_64-win32 (push) Has been cancelled
build and test / test-i386-win32 (push) Has been cancelled
build and test / test-armv7-linux (push) Has been cancelled
build and test / test-aarch64-linux (push) Has been cancelled
build and test / test-riscv64-linux (push) Has been cancelled
Allow mixing old/new function prototypes
This fixes another external testsuite failure
2025-08-15 09:59:11 +02:00

32 lines
331 B
C

int printf(const char *s, ...);
float fx(x)
float x;
{
return 2.0 * x;
}
void func(float a);
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);
}