summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/for-17.C
blob: 9634e59c8e3cc6b206fa9139403c75ef56422fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */

void foo()
{
	long n = 10;
	int i;
#pragma omp for
	for (i=0; i < n; ++i) ;
#pragma omp for
	for (i=0; n > i; ++i) ;
}