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_group.c: check_can_be_private_live_ranges: drop unused variable
[ppcg.git]
/
tests
/
struct4.c
blob
d249ff4271616b48337280bc41374d339b995ebd
1
#include <stdlib.h>
2
3
struct
s
{
4
int
a
;
5
int
b
;
6
};
7
8
int
main
()
9
{
10
int
a
[
10
];
11
12
for
(
int
i
=
0
;
i
<
10
; ++
i
)
13
a
[
i
] =
0
;
14
#pragma scop
15
for
(
int
i
=
0
;
i
<
10
; ++
i
) {
16
struct
s b
;
17
b
.
a
=
1
;
18
b
.
b
=
i
;
19
a
[
i
] =
b
.
a
+
b
.
b
;
20
}
21
#pragma endscop
22
for
(
int
i
=
0
;
i
<
10
; ++
i
)
23
if
(
a
[
i
] !=
1
+
i
)
24
return
EXIT_FAILURE
;
25
26
return
EXIT_SUCCESS
;
27
}