aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr99007.C
blob: 889bfab5081e378b00f84235c488bfff9f2e859a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR middle-end/99007
// { dg-additional-options "-Wno-div-by-zero" }

template <typename T>
void
bar (T *)
{
  T s[0/0];
  #pragma omp teams distribute parallel for reduction(+:s) allocate(s)
  for (int i = 0; i < 8; i++)
    ;
}

void
foo (long *a)
{
  bar (a);
}