reftemp2.c

来自「用于进行gcc测试」· C语言 代码 · 共 24 行

C
24
字号
// DR 391 says that we always bind a reference to the base subobject; it is// incorrect to call the A copy constructor to initialize the parameter of// f.int fail;struct A {  A() { }  A(const A&) { fail = 1; }};struct B : public A { };struct X {  operator B() { return B(); }};X x;void f (const A&) { }int main(){  f(x);  return fail;}

⌨️ 快捷键说明

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