mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-17 23:54:16 +08:00
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
24 lines
248 B
C
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;
|
|
}
|
|
|