[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / openmp / libompd / test / openmp_examples / parallel.c
blob2e7a66c0c1aa65b47495e959f693ec939ca4e654
1 // RUN: %gdb-compile-and-run 2>&1 | tee %t.out | FileCheck %s
3 #include "../ompt_plugin.h"
4 #include <stdio.h>
5 #include <stdlib.h>
7 int main(int argc, char **argv) {
8 int n = 5;
9 if (argc > 1)
10 n = atoi(argv[1]);
11 int i = 0;
12 int a[1000];
13 #pragma omp parallel for
14 for (i = 0; i < 100; ++i) {
15 #pragma omp task
17 a[i] = 42;
18 ompd_tool_test(0);
21 return 0;
24 // CHECK-NOT: OMPT-OMPD mismatch
25 // CHECK-NOT: Python Exception
26 // CHECK-NOT: The program is not being run.