C99 testsuite readiness: Compile more tests with -std=gnu89
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / tpl-for-3.C
blob0cafd9628b5d0143b95fd4176e4f779e19cc7fb3
1 // { dg-do compile }
3 void foo(int);
5 template<typename T> void bar()
7   #pragma omp parallel for
8   for (typename T::T i = 0; i < T::N; ++i)
9     foo(i);
12 struct A
14   typedef int T;
15   static T N;
18 struct B
20   typedef long T;
21   static T N;
24 void test()
26   bar<A>();
27   bar<B>();