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-2.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/35430
2
// { dg-do compile }
3
// { dg-options "-Wsign-compare" }
4
 
5
void
6
foo (__complex__ int i)
7
{
8
  i == 0u;
9
  i == ~1u;     // { dg-warning "comparison between signed and unsigned integer expressions" }
10
}

powered by: WebSVN 2.1.0

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