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++.law/] [shadow2.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// { dg-options "-Wshadow" }
// { dg-options "-Wshadow" }
// GROUPS passed shadow-warnings
// GROUPS passed shadow-warnings
// (Message bugs/shadow:2)
// (Message bugs/shadow:2)
// From: michael@utex.rni.sub.org (Michael Utech)
// From: michael@utex.rni.sub.org (Michael Utech)
// Date:     Sat, 22 Jan 1994 04:28:00 +0100
// Date:     Sat, 22 Jan 1994 04:28:00 +0100
// Subject:  very minor problem/bug in gcc-2.5.4, -Wshadow
// Subject:  very minor problem/bug in gcc-2.5.4, -Wshadow
// Message-ID: 
// Message-ID: 
class X
class X
{
{
  int count;
  int count;
public:
public:
  X() {} // necessary to produce the `count' warning
  X() {} // necessary to produce the `count' warning
};
};
template 
template 
class Y
class Y
{
{
  T t;
  T t;
public:
public:
  int f (int count) { return (count); }
  int f (int count) { return (count); }
};
};
main ()
main ()
{
{
  Y y;
  Y y;
}
}
 
 

powered by: WebSVN 2.1.0

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