2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / overload10.C
blob6ed0a3c83f31ef800a7b7bc70e249a114497f7c4
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;
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 );
19 int  main (int argc, 
20            char **argv,
21            char  **envp)
23    Bed::bed_func(g_func::rpt_func);
24    return(1);