delete2.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 26 行

C
26
字号
// GROUPS passed operator-delete// Check that using the delete operator with a null pointer// is allowed (as called for by The Book, pg. 259)extern "C" int printf (const char *, ...); struct base {	int member;};base* bp;void test (){	delete bp;}int main (){	bp = (base *) 0;	test ();	printf ("PASS\n");	return 0;}

⌨️ 快捷键说明

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