re PR c++/57891 (No diagnostic of narrowing conversion in non-type template argument)
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / pr47963.C
blob6be4c0e18fb37bb6347061d382ef640b826d2313
1 // PR c/47963
2 // { dg-do compile }
3 // { dg-options "-fopenmp" }
5 void
6 foo (float n)
8   int A[n][n];  // { dg-error "could not convert|has non-integral type|converted constant expression" }
9 #pragma omp parallel private(A)
10   ;