[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / AST / ByteCode / openmp.cpp
blobe05fbe086625c83b4703f93f578068e458592934
1 // RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=expected,both -fopenmp %s
2 // RUN: %clang_cc1 -verify=ref,both -fopenmp %s
4 int test1() {
5 int i;
6 int &j = i; // both-note {{declared here}}
7 float *f;
8 // both-note@+2 {{initializer of 'j' is not a constant expression}}
9 // both-error@+1 {{integral constant expression}}
10 #pragma omp for simd aligned(f:j)
11 for (int i = 0; i < 10; ++i);