mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-04 17:30:11 +08:00
re PR tree-optimization/30904 (VRP does not track values of shifts and/or bitfields?)
2007-02-23 Paolo Bonzini <bonzini@gnu.org> PR tree-optimization/30904 * gcc.dg/pr30904.c: New test. From-SVN: r122290
This commit is contained in:
parent
606830199c
commit
f048ddccf0
@ -1,3 +1,8 @@
|
||||
2007-02-23 Paolo Bonzini <bonzini@gnu.org>
|
||||
|
||||
PR tree-optimization/30904
|
||||
* gcc.dg/pr30904.c: New test.
|
||||
|
||||
2007-02-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
|
||||
|
||||
* gcc.test-framework/README: Correct command.
|
||||
|
18
gcc/testsuite/gcc.dg/pr30904.c
Normal file
18
gcc/testsuite/gcc.dg/pr30904.c
Normal file
@ -0,0 +1,18 @@
|
||||
/* { dg-do link } */
|
||||
/* { dg-options "-O2 -fdump-tree-optimized" } */
|
||||
|
||||
extern int t;
|
||||
extern void link_error(void);
|
||||
int main (void)
|
||||
{
|
||||
struct { unsigned int a : 7; } s;
|
||||
s.a = t;
|
||||
if (s.a >> 8)
|
||||
link_error ();
|
||||
if (s.a >> 9)
|
||||
link_error ();
|
||||
}
|
||||
|
||||
|
||||
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */
|
||||
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
Loading…
Reference in New Issue
Block a user