tinycc/tests/tests2/133_old_func.c
herman ten brugge 37e1c88d78
Some checks are pending
build and test / test-x86_64-linux (push) Waiting to run
build and test / test-x86_64-osx (push) Waiting to run
build and test / test-aarch64-osx (push) Waiting to run
build and test / test-x86_64-win32 (push) Waiting to run
build and test / test-i386-win32 (push) Waiting to run
build and test / test-armv7-linux (push) Waiting to run
build and test / test-aarch64-linux (push) Waiting to run
build and test / test-riscv64-linux (push) Waiting to run
Convert float to double for old function code.
2025-08-10 22:02:44 +02:00

24 lines
248 B
C

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