URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [warn/] [skip-1.C] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// { dg-options "-Wall" }
// Check that we don't warn about code that will not be executed.
extern int f2(int);
void
f1(int i)
{
f2(1 == 1 ? 0 : f2(i >> -10));
f2(1 == 1 ? 0 : f2(i >> 128));
f2(1 == 1 ? 0 : f2(i << -10));
f2(1 == 1 ? 0 : f2(1 << 128));
f2(1 != 1 ? f2(i >> -10) : 0);
f2(1 != 1 ? f2(i >> 128) : 0);
f2(1 != 1 ? f2(i << -10) : 0);
f2(1 != 1 ? f2(1 << 128) : 0);
}
Go to most recent revision | Compare with Previous | Blame | View Log