OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [warning10.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// { dg-options "-W -Wall" }
3
// Don't warn about these comparisons.
4
 
5
struct A {
6
  unsigned int b : 14;
7
};
8
 
9
int f (int i, unsigned char u, A a, unsigned long ul)
10
{
11
  if ((u & 0x10) == 0)
12
    return 1;
13
  if (i == 0U)
14
    return 1;
15
  if (a.b > ul)
16
    return 1;
17
 
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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