1 /* PR tree-optimization/71563 */ 2 /* { dg-do compile } */ 3 /* { dg-options "-O2 -fdump-tree-optimized" } */ 4 5 void link_error (void); 6 7 void foo(int k)8foo (int k) 9 { 10 int t = 1 << ((1 / k) << 8); 11 if (t != 1) 12 link_error (); 13 } 14 15 void bar(int k,int l)16bar (int k, int l) 17 { 18 int t = l << (k << 8); 19 if (t != l) 20 link_error (); 21 } 22 23 /* { dg-final { scan-tree-dump-not "link_error" "optimized" } } */ 24