]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/OpenMP/debug-info-openmp-array.cpp
Vendor import of clang trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / OpenMP / debug-info-openmp-array.cpp
1 // RUN: %clang_cc1 -fopenmp -x c++ %s -verify -debug-info-kind=limited -emit-llvm -o - | FileCheck %s
2
3 // RUN: %clang_cc1 -fopenmp-simd -x c++ %s -verify -debug-info-kind=limited -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s
4 // SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
5 // expected-no-diagnostics
6
7 void f(int m) {
8   int i;
9   int cen[m];
10 #pragma omp parallel for
11   for (i = 0; i < m; ++i) {
12     cen[i] = i;
13   }
14 }
15
16 // CHECK: !DILocalVariable(name: "cen", arg: 5