Let tree_single_nonzero_warnv_p use range information
[official-gcc.git] / gcc / testsuite / gcc.dg / pr30904.c
blob940ddf39913cca85661ccf88b3eecb965d3dea48
1 /* { dg-do link } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 int t;
5 extern void link_error(void);
6 int main (void)
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 ();
17 /* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" } } */