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
Add new test to verify that the array index, limit, and stride are
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr51879-2.c
blob
db385cba4a51fac5685769d6ab8fa2a09494a041
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre" } */
3
4
int
bar
(
int
);
5
void
baz
(
int
);
6
7
void
8
foo
(
int
y
)
9
{
10
int
a
;
11
if
(
y
)
12
baz
(
bar
(
7
) +
6
);
13
else
14
baz
(
bar
(
7
) +
6
);
15
}
16
17
/* { dg-final { scan-tree-dump-times "bar \\(" 1 "pre"} } */
18
/* { dg-final { scan-tree-dump-times "baz \\(" 1 "pre"} } */
19
/* { dg-final { cleanup-tree-dump "pre" } } */