diag0098.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 27 行
C
27 行
struct X;
void takes_X( X & );
void takes_cX( const X & );
void takes_vX( volatile X & );
void has_X( X &x )
{
takes_X( x );
takes_cX( x );
takes_vX( x );
}
void has_cX( const X &x )
{
takes_X( x ); // error: cannot strip away const
takes_cX( x );
takes_vX( x ); // error: cannot strip away const
}
void has_vX( volatile X &x )
{
takes_X( x ); // error: cannot strip away volatile
takes_cX( x ); // error: cannot strip away volatile
takes_vX( x );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?