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
2018-01-24 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr45991.c
blob
eefce4429e1b1360729cb424a9358adb64d83743
1
/* { dg-do compile } */
2
/* { dg-options "-O -fstrict-overflow" } */
3
4
struct
S
5
{
6
int
i
;
7
};
8
9
char
A
[
64
];
10
11
void
foo
(
char
**
dst
,
int
i
)
12
{
13
char
*
p
=
A
+
16
;
14
while
(
i
--)
15
{
16
int
b
= ((
struct
S
*) (&
p
[
i
*
16
+
4
]))->
i
;
17
char
*
c
=
A
+
i
*
16
;
18
dst
[
i
] =
c
+
b
;
19
}
20
}