Debian Codegraph @

gcc/testsuite/gcc.target/i386/warn-abs-3.c

raw
1 /* { dg-do compile { target float128 } } */
2 /* { dg-options "-Wabsolute-value" } */
3
4 #include <stdlib.h>
5 #include <inttypes.h>
6 #include <math.h>
7
8 void
9 tst_float128_size (_Float128 *pf128)
10 {
11 *pf128 = fabsl (*pf128); /* { dg-warning "may cause truncation of value" } */
12 }