Debian Codegraph @

gcc/testsuite/g++.dg/gomp/pr85134.C

raw
1 // PR c++/85134
2 // { dg-do compile }
3 // { dg-options "-std=c++14 -fopenmp" }
4
5 void
6 foo (int i)
7 {
8 constexpr int x[i] = {}; // { dg-error "17:'constexpr' variable 'x' has variably-modified type" }
9 #pragma omp parallel shared(x)
10 ;
11 }