repo.or.cz
/
ppcg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
take into account contraction when generating OpenMP support
[ppcg.git]
/
tests
/
dead.c
blob
3f70a338262dec7be4c6c6bdd92eb6631a902ece
1
#include <stdlib.h>
2
3
int
main
()
4
{
5
int
a
[
1000
],
b
[
1000
];
6
7
for
(
int
i
=
0
;
i
<
1000
; ++
i
)
8
a
[
i
] =
i
;
9
#pragma scop
10
for
(
int
i
=
0
;
i
<
1000
; ++
i
) {
11
int
c
;
12
int
d
;
13
c
=
a
[
i
];
14
d
=
c
;
15
b
[
i
] =
c
;
16
}
17
#pragma endscop
18
for
(
int
i
=
0
;
i
<
1000
; ++
i
)
19
if
(
b
[
i
] !=
a
[
i
])
20
return
EXIT_FAILURE
;
21
22
return
EXIT_SUCCESS
;
23
}