⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bad-error6.c

📁 linux下编程用 编译软件
💻 C
字号:
// { dg-do assemble  }// GROUPS passed bad-errorstypedef __SIZE_TYPE__ size_t;class tt {    public:    tt(int);    private:    void *operator new(size_t a); // Forbid object creation in heap memory.};void st(const tt&, int);void ff(int i, int j){    if( i > 0 ) {        // This work ok.        tt a_tt(i);        st(a_tt, j);    }    else {        // This triggers an error because of private operator new ????.        st(tt(-i), j);    }}

⌨️ 快捷键说明

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