FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / overload4.C
blob21c3dc8db5a5a1f201f1a5adc5d1cb742c0a049a
1 // Build don't link: 
2 // GROUPS passed overloading
3   typedef void *                (*NewObject) (void);
4   
5   class B
6   {
7   public:
8         static void WantsNew (NewObject creator); // ERROR - candidates are
9   };
10   
11   class A
12   {
13   public:
14       static A * NewOne (void);
15   
16       static void InitClass (void)
17       {
18           B::WantsNew ( (NewObject) A::NewOne );
19           // This used to die in convert_harshness_{ansi,old} cuz it
20           // didn't know what to do about a void type.
21           B::WantsNew ( A::NewOne );// ERROR - 
22       }
23   };