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 warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr79408-2.c
blob
696fb58231aa7ac89cce415dfc3049a7e48ea886
1
/* PR tree-optimization/79408 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-optimized" } */
4
5
void
link_error
(
void
);
6
7
void
8
foo
(
unsigned int
y
)
9
{
10
if
(
y
<=
7312
)
11
return
;
12
if
(
7312
%
y
!=
7312
)
13
link_error
();
14
}
15
16
void
17
bar
(
int
x
,
int
y
)
18
{
19
if
(
y
<=
7312
)
20
return
;
21
if
(
7312
%
y
!=
7312
)
22
link_error
();
23
}
24
25
void
26
baz
(
int
x
,
int
y
)
27
{
28
if
(
y
<=
7312
)
29
return
;
30
if
(-
7312
%
y
!= -
7312
)
31
link_error
();
32
}
33
34
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */