OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/41920
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr32573.c
1
/* PR tree-optimization/32573 */
2
/* { dg-do compile } */
3
/* { dg-options "-O3" } */
4
5
int
6
foo (void *x, long long *y)
7
{
8
char a[256];
9
int i = 0;
10
long long b;
11
int c;
12
int d = 0;
13
int e = 0;
14
unsigned f = 0;
15
b = bar (x);
16
c = (unsigned) b;
17
while (d < b && d < 65557)
18
{
19
f = *(unsigned *) &a[0];
20
for (i = c - 4; i > 0; i--)
21
if (a[i + 0] == 0x50
22
&& a[i + 1] == 0x4B
23
&& a[i + 3] == 0x06)
24
{
25
e = 1;
26
break;
27
}
28
}
29
return !e;
30
}