OSDN Git Service

Scan "lea\[lq\]?\[ \t\]" instead of "lea\[ \t\]".
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.law / shadow2.C
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>
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 main ()
26 {
27   Y<char> y;
28 }