summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/bugprone-incorrect-roundings.cpp
blob: ee37b56ae002f756beb08abf9426d14e03fe1fd7 (plain)
1
2
3
4
5
6
7
void f1()
{
  double d;
  int x;

  x = (d + 0.5);
}