gcc/testsuite/c-c++-common/gomp/pr58703.c
raw| 1 | /* PR c++/58703 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-fopenmp" } */ |
| 4 | |
| 5 | #pragma omp declare reduction (+ : char[] : omp_out += omp_in) /* { dg-error "function or array type" } */ |
| 6 | #pragma omp declare reduction (+ : char() : omp_out += omp_in) /* { dg-error "function or array type" } */ |