| 1 |
// PR middle-end/99007 |
| 2 |
// { dg-additional-options "-Wno-div-by-zero" } |
| 3 |
|
| 4 |
template <typename T> |
| 5 |
void |
| 6 |
bar (T *) |
| 7 |
{ |
| 8 |
T s[0/0]; |
| 9 |
#pragma omp teams distribute parallel for reduction(+:s) allocate(s) |
| 10 |
for (int i = 0; i < 8; i++) |
| 11 |
; |
| 12 |
} |
| 13 |
|
| 14 |
void |
| 15 |
foo (long *a) |
| 16 |
{ |
| 17 |
bar (a); |
| 18 |
} |