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 c/56980
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr51491-2.c
blob
79adcf6525ed3366c42afbc17adaeb6206d816a8
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-ccp1" } */
3
4
int
g
(
int
*);
5
6
int
7
f
(
int
n
)
8
{
9
int
tt
=
0
;
10
int
t
=
4
;
11
{
12
int
a
[
t
13
+ (
tt
!=
0
?
6
:
0
)
14
];
15
tt
=
g
(
a
);
16
{
17
int
b
[
n
];
18
tt
+=
g
(
b
);
19
if
(
n
>
20
)
20
tt
+=
148
*
g
(
b
);
21
tt
+=
b
[
0
];
22
}
23
tt
+=
a
[
0
];
24
}
25
{
26
int
a
[
4
];
27
tt
+=
g
(
a
);
28
tt
+=
a
[
0
];
29
}
30
return
tt
;
31
}
32
33
/* { dg-final { scan-tree-dump-times "CLOBBER" 2 "ccp1"} } */
34
/* { dg-final { cleanup-tree-dump "ccp1" } } */