repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
AVR: Assert minimal required bit width of section_common::flags.
[gcc.git]
/
libgomp
/
testsuite
/
libgomp.c
/
pr24455.c
blob
4284c1095293811ed857a1db0729438291a6896d
1
/* { dg-do run } */
2
/* { dg-require-effective-target tls_runtime } */
3
/* { dg-additional-sources pr24455-1.c } */
4
5
extern
void
abort
(
void
);
6
7
extern
int
i
;
8
#pragma omp threadprivate(i)
9
10
int
main
()
11
{
12
i
=
0
;
13
14
#pragma omp parallel default(none) num_threads(10)
15
{
16
i
++;
17
#pragma omp barrier
18
if
(
i
!=
1
)
19
abort
();
20
}
21
22
return
0
;
23
}