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
PR tree-optimization/84740
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
graphite
/
pr46761.c
blob
f45398a2b479a25f71c720e185e21557e3bc2a6e
1
/* { dg-do run } */
2
/* { dg-options "-O -fgraphite-identity" } */
3
4
#define N 128
5
6
int
7
main
()
8
{
9
int
arr
[
N
],
i
,
s
=
0
;
10
for
(
i
=
0
;
i
<
N
;
i
++)
11
arr
[
i
] =
i
;
12
13
for
(
i
=
0
;
i
<
N
;
i
++)
14
if
(
arr
[
i
] !=
i
)
15
__builtin_abort
();
16
17
for
(
i
=
0
;
i
<
N
;
i
++)
18
s
+=
arr
[
i
];
19
if
(
s
!= (
N
* (
N
-
1
)) /
2
)
20
__builtin_abort
();
21
return
0
;
22
}