900210_06.c

来自「linux下的gcc编译器」· C语言 代码 · 共 26 行

C
26
字号
// g++ 1.36.1 bug 900210_06// g++ allows values of pointer-to-const types to be assigned to variables// of pointer-to-non-const types.// Cfront 2.0 disallows such assignments.// g++ also allows values of pointer-to-volatile types to be assigned to// variables of pointer-to-non-volatile types.// Cfront 2.0 *would* disallow this (if it only supported "volatile").// keywords: pointer types, implicit type conversionsconst char *ccp;volatile char *vcp;char *cp;void function (){  cp = ccp;		/* ERROR - */  cp = vcp;		/* ERROR - */}int main () { return 0; }

⌨️ 快捷键说明

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