builtins7.c

来自「gcc3.2.1源代码」· C语言 代码 · 共 21 行

C
21
字号
// Test that built-in functions are recognized with a prototype.// Origin: Roger Sayle  Mar 20, 2002// Copyright (C) 2002 Free Software Foundation.//// Special g++ Options: -O2extern "C" void link_error (void);namespace std {typedef __SIZE_TYPE__ size_t;extern "C" size_t strlen (const char*);}intmain (){  if (std::strlen ("foo") != 3)    link_error ();  return 0;}

⌨️ 快捷键说明

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