new1.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 14 行
C
14 行
// { dg-do compile }// Origin: <igodard at rational dot com>// PR c++/2518: operator new must not be looked up in local scopeint main() { int i; void* operator new(unsigned s, int* p); int* e = new(&i) int; // { dg-error "no matching function" } int* f = new int; return 0;}// { dg-excess-errors "operator new" }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?