URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [skip-2.C] - Rev 783
Compare with Previous | Blame | View Log
// { dg-do compile }
// { dg-options "-Wall" }
extern int f2(int);
extern void f3();
void
f1(int i)
{
if (1 == 1 || f2(i >> -10))
f3();
if (1 == 1 || f2(i >> 128))
f3();
if (1 == 1 || f2(i << -10))
f3();
if (1 == 1 || f2(i << 128))
f3();
if (1 == 1 || i < 0xffffffff)
f3();
if (1 == 1 || i >= -0x80000000)
f3();
if (1 == 0 && f2(i >> -10))
f3();
if (1 == 0 && f2(i >> 128))
f3();
if (1 == 0 && f2(i << -10))
f3();
if (1 == 0 && f2(i << 128))
f3();
if (1 == 0 && i < 0xffffffff)
f3();
if (1 == 0 && i >= -0x80000000)
f3();
if (1 == 1 && f2(i >> -10)) /* { dg-warning "shift count is negative" } */
f3();
if (1 == 0 || f2(i << -10)) /* { dg-warning "shift count is negative" } */
f3();
}