OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [overload10.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { 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
 
19
int  main (int argc,
20
           char **argv,
21
           char  **envp)
22
{
23
   Bed::bed_func(g_func::rpt_func);
24
   return(1);
25
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.