blob: 8c4a031935a9d34c071dbcf3255210734a2b0adb [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */
/* { dg-additional-options "-std=c99" { target c } } */
struct S *p; /* { dg-message "forward declaration" "" { target c++ } } */
float f;
int j;
void
foo (void)
{
#pragma omp simd linear(p) linear(f : 1)
/* { dg-error "linear clause applied to" "" { target *-*-* } .-1 } */
/* { dg-error "(incomplete|undefined) type" "" { target *-*-* } .-2 } */
for (int i = 0; i < 10; i++)
;
#pragma omp simd linear(j : 7.0) /* { dg-error "step expression must be integral" } */
for (int i = 0; i < 10; i++)
;
}