OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [skip-1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { 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
7
f1(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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.