Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.brendan / overload4.C
blobac4f8c8ddfb1fdb572af0980654a161694e56a07
1 // { dg-do assemble  }
2 // GROUPS passed overloading
3   typedef void *                (*NewObject) (void);
4   
5   class B
6   {
7   public:
8         static void WantsNew (NewObject creator); // { dg-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 );// { dg-error "" } 
22       }
23   };