Sign in
llvm
/
llvm-archive
/
f91d1660b4827134c7666ae9637f21a2741d183f
/
.
/
clang-tests
/
gcc-4_2-testsuite
/
src
/
gcc.dg
/
gomp
/
appendix-a
/
a.37.1.c
blob: 3581ee27d7dabdb9227812b2aaecb56eaee86e5b [
file
] [
log
] [
blame
]
/* { dg-do compile } */
extern
int
omp_get_num_threads
(
void
);
void
work
(
int
i
);
void
incorrect
()
{
int
np
,
i
;
np
=
omp_get_num_threads
();
/* misplaced */
#pragma
omp parallel
for
schedule
(
static
)
for
(
i
=
0
;
i
<
np
;
i
++)
work
(
i
);
}