brintos

brintos / llvm-project-archived public Read only

0
0
Text · 523 B · 78ca975 Raw
13 lines · c
1// RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fopenmp -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name openmp.c %s | FileCheck %s2 3// CHECK: openmp.c:{{.+}}.omp_outlined:4// CHECK: File 0, 10:3 -> 10:315// CHECK: File 0, 10:19 -> 10:246// CHECK: File 0, 10:26 -> 10:297// CHECK: File 0, 10:30 -> 10:318int 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}13