anew1.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 21 行
C
21 行
// { dg-do run }// PR 11228: array operator new, with zero-initialization and a variable sized array.// Regression test for PR // Author: Matt Austern <austern@apple.com>int* allocate(int n){ return new int[n]();}int main(){ const int n = 17; int* p = allocate(n); for (int i = 0; i < n; ++i) if (p[i] != 0) return 1; return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?