Debian Codegraph @

gcc/testsuite/g++.dg/ext/arm-fp16/fp16-overload-1.C

raw
1 /* { dg-do compile { target arm*-*-* } } */
2 /* { dg-options "-mfp16-format=ieee" } */
3
4 /* __fp16 values are autoconverted to float and should therefore be treated
5 * just like float for overloading purposes. */
6
7 extern int frobnify (float x);
8 extern int frobnify (double x);
9
10 int g (void)
11 {
12 return frobnify ((__fp16)1.0);
13 }
14
15 /* { dg-final { scan-assembler "_Z8frobnifyf" } } */
16 /* { dg-final { scan-assembler-not " _Z8frobnifyd" } } */