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
update pet to version 0.11.4
[ppcg.git]
/
tests
/
local.c
blob
e8b3894f019aa2584a4ee26a3b92389e74d05567
1
#include <stdlib.h>
2
3
int
main
()
4
{
5
int
A
[
100
];
6
7
#pragma scop
8
{
9
int
B
[
100
];
10
B
[
0
] =
0
;
11
for
(
int
i
=
1
;
i
<
100
; ++
i
)
12
B
[
i
] =
B
[
i
-
1
] +
1
;
13
for
(
int
i
=
0
;
i
<
100
; ++
i
)
14
A
[
i
] =
B
[
i
];
15
}
16
#pragma endscop
17
for
(
int
i
=
0
;
i
<
100
; ++
i
)
18
if
(
A
[
i
] !=
i
)
19
return
EXIT_FAILURE
;
20
21
return
EXIT_SUCCESS
;
22
}