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