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
2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr45105.c
blob
a93a21f9ee54d3ccfcbdd9188f8c317a8779b21f
1
/* PR debug/45105 */
2
/* { dg-do compile } */
3
/* { dg-options "-Os -fcompare-debug" } */
4
5
extern
int
*
baz
(
int
*,
int
*);
6
7
void
8
bar
(
int
*
p1
,
int
*
p2
)
9
{
10
int
n
= *
baz
(
0
,
0
);
11
p1
[
n
] =
p2
[
n
];
12
}
13
14
void
15
foo
(
int
*
p
,
int
l
)
16
{
17
int
a1
[
32
];
18
int
a2
[
32
];
19
baz
(
a1
,
a2
);
20
while
(
l
)
21
{
22
if
(
l
&
1
)
23
p
=
baz
(
a2
,
p
);
24
l
--;
25
bar
(
a1
,
a2
);
26
}
27
}