Debian Codegraph @

gcc/testsuite/gcc.target/arm/fp16-unprototyped-1.c

raw
1 /* Test promotion of __fp16 to double as arguments to unprototyped
2 function in another compilation unit. */
3
4 /* { dg-do run } */
5 /* { dg-options "-mfp16-format=ieee -std=c17" } */
6 /* { dg-additional-sources "fp16-unprototyped-2.c" } */
7
8 #include <stdlib.h>
9
10 extern int f ();
11
12 static __fp16 x = 42.0;
13 static __fp16 y = -42.0;
14
15 int
16 main (void)
17 {
18 if (!f (x, y))
19 abort ();
20 return 0;
21 }