repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge C++ from gomp-20050608-branch.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.c++
/
loop-6.C
blob
fa26c6892cff218e447e1445b91ae381d674bb30
1
// { dg-do run }
2
3
extern "C" void abort (void);
4
5
volatile int count;
6
static int test(void)
7
{
8
return ++count > 0;
9
}
10
11
int main()
12
{
13
int i;
14
#pragma omp for
15
for (i = 0; i < 10; ++i)
16
{
17
if (test())
18
continue;
19
abort ();
20
}
21
if (i != count)
22
abort ();
23
return 0;
24
}