pretty-print: Fix up allocate_object
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / shadow2.C
blob64d967a01d514cb57e200271afce5ff2534bef45
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 int
26 main ()
28   Y<char> y;
29   return 0;