1// Build don't link: 2// GROUPS passed overloading 3class Bed { 4 public: 5 static void bed_func( 6 int (*f)(int &, int, int)); 7}; 8class g_func { 9public: 10 static int save_status; 11 12 // in compute_harshness, we should be using comptypes, not ==, to 13 // check if this is equivalent to the previous decl; the only 14 // difference is the default arg 15 static int rpt_func(int &status, int expand, 16 int restore_cursor=1 ); 17}; 18 19int main (int argc, 20 char **argv, 21 char **envp) 22{ 23 Bed::bed_func(g_func::rpt_func); 24 return(1); 25} 26