URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { 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;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.