llvm-for-llvmta/test/tools/llvm-cov/Inputs/multithreaded_report/abs.h

8 lines
82 B
C++

template<typename T>
T abs(T x) {
if (x < 0) {
return -x;
}
return x;
}