C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / pr84448.C
blob3fad4741d38b89ac684e31653ed37c8a2450f11d
1 // PR c++/84448
2 // { dg-do compile }
4 struct A
6   operator int () const;
7   A& operator += (int);
8   A& operator ++ ();
9 };
11 void
12 foo (A a, A b)
14   #pragma omp for
15   for (A i = a; i <=; ++i)      // { dg-error "expected primary-expression before" }
16     ;                           // { dg-error "invalid controlling predicate" "" { target *-*-* } .-1 }