blob: f4fd7c4834d4d3247adf1eec77d0e8644ede106c [file] [log] [blame]
/* PR middle-end/58809 */
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */
_Complex int j;
_Complex double d;
void
foo (void)
{
#pragma omp parallel reduction (&:j) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
#pragma omp parallel reduction (|:j) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
#pragma omp parallel reduction (^:j) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
#pragma omp parallel reduction (min:j) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
#pragma omp parallel reduction (max:j) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
#pragma omp parallel reduction (&:d) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
#pragma omp parallel reduction (|:d) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
#pragma omp parallel reduction (^:d) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
#pragma omp parallel reduction (min:d) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
#pragma omp parallel reduction (max:d) /* { dg-error "has invalid type for|user defined reduction not found for" } */
;
}