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
C++: simplify output from suggest_alternatives_for
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.oacc-c-c++-common
/
pr85782.c
blob
6f84dfc7d8f442cb9216e2b75f7b70a73f89ef7b
1
/* PR c++/85782 */
2
3
#include <assert.h>
4
5
#define N 100
6
7
int
8
main
()
9
{
10
int
i
,
a
[
N
];
11
12
for
(
i
=
0
;
i
<
N
;
i
++)
13
a
[
i
] =
i
+
1
;
14
15
#pragma acc parallel loop copy(a)
16
for
(
i
=
0
;
i
<
N
;
i
++)
17
{
18
if
(
i
%
2
)
19
continue
;
20
a
[
i
] =
0
;
21
}
22
23
for
(
i
=
0
;
i
<
N
;
i
++)
24
{
25
if
(
i
%
2
)
26
assert
(
a
[
i
] ==
i
+
1
);
27
else
28
assert
(
a
[
i
] ==
0
);
29
}
30
31
return
0
;
32
}