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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [compare10.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Test for bogus -Wsign-compare warnings that appeared when not
2
   folding operands before warning.  */
3
/* { dg-do compile } */
4
/* { dg-options "-Wsign-compare" } */
5
 
6
int
7
test_compare (int a, unsigned b)
8
{
9
  return (b > 8 * (a ? 4 : 8));
10
}
11
 
12
unsigned int
13
test_conditional (int a, unsigned b, int c)
14
{
15
  return (c ? b : 8 * (a ? 4 : 8));
16
}

powered by: WebSVN 2.1.0

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