fune/tools/clang-tidy/test/bugprone-integer-division.cpp

5 lines
55 B
C++

float f() {
int a = 2;
int b = 10;
return a/b;
}