mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-19 11:24:19 +08:00
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
This fixes another external testsuite failure
32 lines
331 B
C
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);
|
|
}
|