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
Let tree_single_nonzero_warnv_p use range information
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr30904.c
blob
940ddf39913cca85661ccf88b3eecb965d3dea48
1
/* { dg-do link } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
4
int
t
;
5
extern
void
link_error
(
void
);
6
int
main
(
void
)
7
{
8
struct
{
unsigned int
a
:
7
; }
s
;
9
s
.
a
=
t
;
10
if
(
s
.
a
>>
8
)
11
link_error
();
12
if
(
s
.
a
>>
9
)
13
link_error
();
14
}
15
16
17
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" } } */