Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CoverageMapping/openmp.c @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | 2e18cbf3894f |
comparison
equal
deleted
inserted
replaced
147:c2174574ed3a | 150:1d019706d866 |
---|---|
1 // RUN: %clang_cc1 -fopenmp -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name openmp.c %s | FileCheck %s | |
2 | |
3 // CHECK: openmp.c:{{.+}}omp_outlined{{.+}}: | |
4 // CHECK: File 0, 10:3 -> 10:31 | |
5 // CHECK: File 0, 10:19 -> 10:24 | |
6 // CHECK: File 0, 10:26 -> 10:29 | |
7 // CHECK: File 0, 10:30 -> 10:31 | |
8 int foo(int time, int n) { | |
9 #pragma omp parallel for default(shared) schedule(dynamic, 1) reduction(+ : time) | |
10 for (int i = 1; i < n; ++i); | |
11 return 0; | |
12 } |