defarg4.c

来自「xml大全 可读写调用率很高 xml大全 可读写调用率很高」· C语言 代码 · 共 32 行

C
32
字号
// { dg-do compile }// Copyright (C) 2003 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 3 Jul 2003 <nathan@codesourcery.com>// PR c++ 9162. default args got left unprocessedstruct S {  friend int foo (int = 100);};int i = foo ();struct R{  template <typename T> R (T, int = 0);};int Foo (){  R s (1);}template <typename T> struct Q{  int Foo (T, int = 0);};int Foo (Q<int> *s){  s->Foo (1);}

⌨️ 快捷键说明

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