summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/overload10.C
blob: 6ed0a3c83f31ef800a7b7bc70e249a114497f7c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do assemble  }
// GROUPS passed overloading
class Bed {
   public:
   static void bed_func(
      int        (*f)(int &, int, int));
};
class g_func {
public:
	static int save_status;

	// in compute_harshness, we should be using comptypes, not ==, to
	// check if this is equivalent to the previous decl; the only
	// difference is the default arg
	static int rpt_func(int &status, int expand, 
		int restore_cursor=1 );
};

int  main (int argc, 
           char **argv,
           char  **envp)
{
   Bed::bed_func(g_func::rpt_func);
   return(1);
}