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
Dead
[official-gcc.git]
/
gomp-20050608-branch
/
gcc
/
testsuite
/
gcc.dg
/
gomp
/
appendix-a
/
a.37.1.c
blob
3581ee27d7dabdb9227812b2aaecb56eaee86e5b
1
/* { dg-do compile } */
2
3
extern
int
omp_get_num_threads
(
void
);
4
void
work
(
int
i
);
5
void
6
incorrect
()
7
{
8
int
np
,
i
;
9
np
=
omp_get_num_threads
();
/* misplaced */
10
#pragma omp parallel for schedule(static)
11
for
(
i
=
0
;
i
<
np
;
i
++)
12
work
(
i
);
13
}