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
Fix gimplification of ordering comparisons of arrays of bytes
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
pr96522.c
blob
2f55d1aeb4d5e58aa8db59503031ba4e5fc0616f
1
/* { dg-do run } */
2
/* { dg-additional-options "-fno-tree-pta" } */
3
4
__attribute__
((
noipa
))
void
5
bar
(
void
)
6
{
7
volatile
int
v
=
1
;
8
if
(
v
)
9
__builtin_abort
();
10
}
11
12
__attribute__
((
noipa
))
void
13
baz
(
void
)
14
{
15
}
16
17
__attribute__
((
noipa
))
void
18
foo
(
int
n
,
double
*
p
,
double
*
x
)
19
{
20
if
(
n
<
10
&&
p
!=
0
)
21
for
(
int
i
=
0
;
i
<
10
;
i
++)
22
if
(
x
[
0
] <
p
[
i
])
23
x
[
i
] =
0
;
24
if
(
p
!=
0
)
25
bar
();
26
else
27
baz
();
28
}
29
30
int
31
main
()
32
{
33
double
arr
[
10
];
34
foo
(
1000
,
0
,
arr
);
35
return
0
;
36
}