2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / fp16-unprototyped-1.c
blob70c295648889afe91b1c4170cf9c3274dfa74f20
1 /* Test promotion of __fp16 to double as arguments to unprototyped
2 function in another compilation unit. */
4 /* { dg-do run } */
5 /* { dg-options "-mfp16-format=ieee" } */
6 /* { dg-additional-sources "fp16-unprototyped-2.c" } */
8 #include <stdlib.h>
10 extern int f ();
12 static __fp16 x = 42.0;
13 static __fp16 y = -42.0;
15 int
16 main (void)
18 if (!f (x, y))
19 abort ();
20 return 0;