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-4.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
//PR c++/50012
2
// { dg-options "-Wsign-compare" }
3
 
4
int foo(unsigned int *a, int b)
5
{
6
  return (*a) <= b; // { dg-warning "comparison between signed and unsigned" }
7
}
8
 
9
int bar(unsigned int *a, int b)
10
{
11
  return *a <= b; // { dg-warning "comparison between signed and unsigned" }
12
}

powered by: WebSVN 2.1.0

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