call4.c
来自「用于进行gcc测试」· C语言 代码 · 共 28 行
C
28 行
// { dg-do compile }// Copyright (C) 2007 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 22 Jul 2007 <nathan@codesourcery.com>// Origin: Danny Boelens <danny.boelens@artwork-systems.com>// PR 32839. Default arguments propagated through the type system to// an indirect call.template<typename T>struct TPL{ enum Whatever {e1, e2}; static void Quux (int i = e1 | e2);};template <typename F>void DoIt (F fun){ fun (); // { dg-error "too few arguments" }}void Foo (){ DoIt (&TPL<int>::Quux);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?