| 1 |
// { dg-do assemble } |
| 2 |
// { dg-options "-Wshadow" } |
| 3 |
// GROUPS passed shadow-warnings |
| 4 |
// (Message bugs/shadow:2) |
| 5 |
// From: [email protected] (Michael Utech) |
| 6 |
// Date: Sat, 22 Jan 1994 04:28:00 +0100 |
| 7 |
// Subject: very minor problem/bug in gcc-2.5.4, -Wshadow |
| 8 |
// Message-ID: <[email protected]> |
| 9 |
|
| 10 |
class X |
| 11 |
{ |
| 12 |
int count; |
| 13 |
public: |
| 14 |
X() {} // necessary to produce the `count' warning |
| 15 |
}; |
| 16 |
|
| 17 |
template <class T> |
| 18 |
class Y |
| 19 |
{ |
| 20 |
T t; |
| 21 |
public: |
| 22 |
int f (int count) { return (count); } |
| 23 |
}; |
| 24 |
|
| 25 |
int |
| 26 |
main () |
| 27 |
{ |
| 28 |
Y<char> y; |
| 29 |
return 0; |
| 30 |
} |