1 // { dg-do assemble }
2 // GROUPS passed overloading
3 class Bed {
4 public:
5 static void bed_func(
6 int (*f)(int &, int, int));
7 };
8 class g_func {
9 public:
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
main(int argc,char ** argv,char ** envp)19 int main (int argc,
20 char **argv,
21 char **envp)
22 {
23 Bed::bed_func(g_func::rpt_func);
24 return(1);
25 }
26