900210_03.c

来自「俄罗斯高人Mamaich的Pocket gcc编译器(运行在PocketPC上)」· C语言 代码 · 共 27 行

C
27
字号
// g++ 1.36.1 bug 900210_03// g++ allows void* type values to be assigned to variables of other// pointer types.  According to the C++ Reference Manual, this is illegal.// Cfront 2.0 passes this test.// keywords: void pointers, pointer type conversions, implicit type conversionsvoid* vp;char* cp;int* ip;enum {enum_value_1} * ep;struct { int member; } * sp;void (*fp) (void);void global_function (){  cp = vp;	/* ERROR -  */  ip = vp;	/* ERROR -  */  ep = vp;	/* ERROR -  */  sp = vp;	/* ERROR -  */  fp = vp;	/* ERROR -  */}int main () { return 0; }

⌨️ 快捷键说明

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