diff options
Diffstat (limited to 'test/CoverageMapping/openmp.c')
-rw-r--r-- | test/CoverageMapping/openmp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CoverageMapping/openmp.c b/test/CoverageMapping/openmp.c new file mode 100644 index 000000000000..1ac12624e01a --- /dev/null +++ b/test/CoverageMapping/openmp.c @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -fopenmp -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name openmp.c %s | FileCheck %s + +// CHECK: openmp.c:{{.+}}omp_outlined{{.+}}: +// CHECK: File 0, 10:3 -> 10:31 +// CHECK: File 0, 10:19 -> 10:24 +// CHECK: File 0, 10:26 -> 10:29 +// CHECK: File 0, 10:30 -> 10:31 +int foo(int time, int n) { +#pragma omp parallel for default(shared) schedule(dynamic, 1) reduction(+ : time) + for (int i = 1; i < n; ++i); + return 0; +} |