gcc/testsuite/g++.old-deja/g++.other/inline2.C
raw| 1 | // { dg-do assemble } |
| 2 | // { dg-options "-O2 -Winline" } |
| 3 | // { dg-skip-if "requires hosted libstdc++ for cmath" { ! hostedlib } } |
| 4 | // Origin: Martin Reinecke <[email protected]> |
| 5 | |
| 6 | #include <cmath> |
| 7 | |
| 8 | int main() |
| 9 | { |
| 10 | double foo = 4.5; |
| 11 | if (std::abs (0.5-std::abs (foo-0.5)) < 1e-10) foo+=1; |
| 12 | } |