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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wsign-compare-3.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-Wsign-compare" }
3
 
4
enum E { A, B, C };
5
extern void f1(int);
6
void
7
f2(E v1, E v2)
8
{
9
  for (unsigned int i = v1; i <= v2; ++i)
10
    f1(i);
11
  for (int i = v1; i <= v2; ++i)
12
    f1(i);
13
}

powered by: WebSVN 2.1.0

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