mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-27 11:29:34 +00:00
22 lines
297 B
C
22 lines
297 B
C
/* { dg-do run } */
|
|
/* { dg-options "-O" } */
|
|
/* { dg-options "-O -march=i686" { target { { i686-*-* x86_64-*-* } && ilp32 } } } */
|
|
|
|
extern void abort(void);
|
|
|
|
float foo(float f)
|
|
{
|
|
if (f < 0.0f)
|
|
f = -f;
|
|
|
|
return f;
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
if (foo (-1.0f) != 1.0f)
|
|
abort ();
|
|
|
|
return 0;
|
|
}
|