Debian Codegraph @

gcc/testsuite/g++.dg/warn/pr108285.C

raw
1 // PR c++/108285
2 // { dg-do compile }
3 // { dg-options "-fexcess-precision=standard -Wfloat-conversion" }
4
5 void bar (double);
6
7 void
8 foo (float x)
9 {
10 bar (2 * x); // { dg-bogus "conversion from '\[^\n\r]\*' to 'double' may change value" }
11 }