LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / pr35751.c
blobf7777a5b79a526306bf578bf5401c4208a9de147
1 /* PR c/35751 */
2 /* { dg-do compile } */
3 /* { dg-options "-fopenmp" } */
5 void
6 foo (int i)
8 extern int a[i]; /* { dg-error "must have no linkage|storage size of" } */
9 static int b[i]; /* { dg-error "storage size of" } */
11 #pragma omp parallel
13 a[0] = 0;
14 b[0] = 0;
17 #pragma omp parallel shared (a, b)
19 a[0] = 0;
20 b[0] = 0;
23 #pragma omp parallel private (a, b)
25 a[0] = 0;
26 b[0] = 0;
29 #pragma omp parallel firstprivate (a, b)
31 a[0] = 0;
32 b[0] = 0;