1 // { dg-do compile } 2 // { dg-options "-Wall" } 3 4 // Check that we don't warn about code that will not be executed. 5 extern int f2(int); 6 void f1(int i)7f1(int i) 8 { 9 f2(1 == 1 ? 0 : f2(i >> -10)); 10 f2(1 == 1 ? 0 : f2(i >> 128)); 11 f2(1 == 1 ? 0 : f2(i << -10)); 12 f2(1 == 1 ? 0 : f2(1 << 128)); 13 f2(1 != 1 ? f2(i >> -10) : 0); 14 f2(1 != 1 ? f2(i >> 128) : 0); 15 f2(1 != 1 ? f2(i << -10) : 0); 16 f2(1 != 1 ? f2(1 << 128) : 0); 17 } 18