2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / shadow2.C
blob46f9dfcc32f24d3f3eef2b6bd6f682b77ebfb553
1 // { dg-do assemble  }
2 // { dg-options "-Wshadow" }
3 // GROUPS passed shadow-warnings
4 // (Message bugs/shadow:2)
5 // From: michael@utex.rni.sub.org (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: <m0pNZ1T-0008QUC@utex.rni.sub.org>
10 class X
12   int count;
13 public:
14   X() {} // necessary to produce the `count' warning
17 template <class T>
18 class Y
20   T t;
21 public:
22   int f (int count) { return (count); }
25 main ()
27   Y<char> y;