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 libfortran/64770 Segfault when trying to open existing file with status="new".
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
graphite
/
isl-ast-gen-blocks-3.c
blob
771d337bdde350559bd34f55051dffadd92d05cf
1
/* { dg-do run } */
2
/* { dg-options "-O2 -fgraphite-identity" } */
3
4
/* We use a global variable 'k' to avoid ipa-cp. */
5
int
k
=
50
;
6
static int
__attribute__
((
noinline
))
7
foo
()
8
{
9
int
i
,
res
=
0
;
10
for
(
i
=
k
/
2
;
i
<
k
;
i
++)
11
res
+=
i
;
12
13
return
res
;
14
}
15
16
extern
void
abort
();
17
18
int
19
main
(
void
)
20
{
21
int
res
=
foo
();
22
23
if
(
res
!=
925
)
24
abort
();
25
26
return
0
;
27
}