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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wconversion4.C] - Rev 693

Compare with Previous | Blame | View Log

// PR c++/45385
// { dg-options "-Wconversion" } 

void foo(unsigned char);

class Test
{
  void eval()
  {
    foo(bar());  // { dg-warning "may alter its value" }
  }

  unsigned int bar() const
  {
    return __INT_MAX__ * 2U + 1;
  }
};

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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