diag0268.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 28 行
C
28 行
struct INTER {
INTER(int);
};
struct S {
S( int );
operator INTER();
};
struct T {
T( INTER );
};
void foo( T );
void main()
{
S s(2);
foo(s);
foo( S( 2 ) );
}
// this is to check that for copy initialization used in argument passing
// that src->inter->tgt via a ctor and a UDCF is not allowed
// (to match Microsoft)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?