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-message "B::WantsNew|no known conversion" }
9   };
10 
11   class A
12   {
13   public:
14       static A * NewOne (void);
15 
InitClass(void)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 "no matching|conversion" }
22       }
23   };
24