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
2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr30904.c
blob
31ca0497f91a75469307fc630926c2ed143e1859
1
/* { dg-do link } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
4
extern
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" } } */
18
/* { dg-final { cleanup-tree-dump "optimized" } } */