☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr108285.C
☽
☼
gcc/testsuite/g++.dg/warn/pr108285.C
code
plain
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
}