brintos

brintos / llvm-project-archived public Read only

0
0
Text · 498 B · 2e7a66c Raw
27 lines · c
1// RUN: %gdb-compile-and-run 2>&1 | tee %t.out | FileCheck %s2 3#include "../ompt_plugin.h"4#include <stdio.h>5#include <stdlib.h>6 7int 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 for14  for (i = 0; i < 100; ++i) {15#pragma omp task16    {17      a[i] = 42;18      ompd_tool_test(0);19    }20  }21  return 0;22}23 24// CHECK-NOT: OMPT-OMPD mismatch25// CHECK-NOT: Python Exception26// CHECK-NOT: The program is not being run.27