summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cov/Inputs/multithreaded_report/abs.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-cov/Inputs/multithreaded_report/abs.h')
-rw-r--r--llvm/test/tools/llvm-cov/Inputs/multithreaded_report/abs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-cov/Inputs/multithreaded_report/abs.h b/llvm/test/tools/llvm-cov/Inputs/multithreaded_report/abs.h
new file mode 100644
index 00000000000..41eb2b06c0f
--- /dev/null
+++ b/llvm/test/tools/llvm-cov/Inputs/multithreaded_report/abs.h
@@ -0,0 +1,7 @@
+template<typename T>
+T abs(T x) {
+ if (x < 0) {
+ return -x;
+ }
+ return x;
+}
OpenPOWER on IntegriCloud