diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/arm/fp16-unprototyped-2.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.target/arm/fp16-unprototyped-2.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/arm/fp16-unprototyped-2.c b/gcc-4.9/gcc/testsuite/gcc.target/arm/fp16-unprototyped-2.c new file mode 100644 index 000000000..0c0f9cda6 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.target/arm/fp16-unprototyped-2.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-mfp16-format=ieee" } */ + +extern int f (); + +int +f (double xx, double yy) +{ + if (xx == 42.0 && yy == -42.0) + return 1; + return 0; +} |