LLVM OpenMP
20.0.0git
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
c
d
e
g
h
i
m
n
p
r
s
t
u
Functions
c
d
e
g
i
m
n
p
r
s
u
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
_
a
b
c
d
e
i
k
l
m
n
o
p
r
t
u
Enumerations
_
b
c
d
f
k
l
n
o
s
t
Enumerator
_
a
b
c
d
e
f
k
l
n
o
p
r
s
t
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
runtime
test
tasking
issue-69368.c
Go to the documentation of this file.
1
// RUN: %libomp-compile-and-run
2
// RUN: env OMP_NUM_THREADS=1 %libomp-run
3
4
int
main
() {
5
int
i
;
6
int
a
[2];
7
volatile
int
attempt = 0;
8
9
for
(
i
= 0;
i
< 10; ++
i
) {
10
a
[0] =
a
[1] = 0;
11
#pragma omp parallel for
12
for
(
int
i
= 0;
i
< 2;
i
++) {
13
a
[
i
] = 2;
14
}
15
if
(
a
[0] != 2 ||
a
[1] != 2)
16
return
1;
17
18
#pragma omp teams distribute parallel for if (attempt >= 2)
19
for
(
int
i
= 0;
i
< 2;
i
++) {
20
a
[
i
] = 1;
21
}
22
if
(
a
[0] != 1 ||
a
[1] != 1)
23
return
1;
24
}
25
26
return
0;
27
}
main
int main()
Definition:
issue-69368.c:4
i
#define i
Definition:
kmp_stub.cpp:87
a
int a
Definition:
llvm-issue-80664.c:20
Generated on Tue Jun 10 2025 14:23:50 for LLVM OpenMP by
1.9.6