xref: /llvm-project/clang/test/AST/ByteCode/openmp.cpp (revision 159f25301763215ffc49c3c3aa6cb8095a990b41)
1 // RUN: %clang_cc1 -fexperimental-new-constant-interpreter -verify=expected,both -fopenmp %s
2 // RUN: %clang_cc1 -verify=ref,both -fopenmp %s
3 
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);
12 }
13 
14