overload10.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 26 行

C
26
字号
// { dg-do assemble  }// GROUPS passed overloadingclass 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);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?