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
Daily bump.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.c
/
pr81687-2.c
blob
e819f7620320369e9c8f9de6cd5e042d4cd39ef1
1
/* PR c/81687 */
2
/* { dg-do link } */
3
/* { dg-additional-options "-O2" } */
4
5
int
6
main
()
7
{
8
__label__ lab4
,
lab5
,
lab6
;
9
volatile
int
l
=
0
;
10
int
m
=
l
;
11
void
foo
(
int
x
) {
if
(
x
==
1
)
goto
lab4
; }
12
void
bar
(
int
x
) {
if
(
x
==
2
)
goto
lab5
; }
13
void
baz
(
int
x
) {
if
(
x
==
3
)
goto
lab6
; }
14
#pragma omp parallel
15
{
16
foo
(
m
+
1
);
17
lab4
:;
18
}
19
#pragma omp task
20
{
21
bar
(
m
+
2
);
22
lab5
:;
23
}
24
baz
(
m
+
3
);
25
lab6
:;
26
return
0
;
27
}