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
gpu.c: transform_index: drop unused variable
[ppcg.git]
/
tests
/
live_out.c
blob
c13965ea29c39a24db0fb7d47e1666a563f8bd17
1
#include <stdlib.h>
2
3
/* Check that a write access is not removed from the live-out
4
* accesses only because a strict subset of the (potentially)
5
* accessed elements are killed by a later write.
6
*/
7
int
main
()
8
{
9
int
A
[
10
];
10
11
A
[
1
] =
0
;
12
#pragma scop
13
int
i
=
1
;
14
i
=
i
*
i
;
15
A
[
i
] =
1
;
16
A
[
0
] =
0
;
17
#pragma endscop
18
if
(
A
[
1
] !=
1
)
19
return
EXIT_FAILURE
;
20
21
return
EXIT_SUCCESS
;
22
}