eb70.c

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

C
18
字号
// { dg-do assemble  }// conversion ops should be treated as coming from the most derived class// for overload resolution.  See [over.match.funcs].class X {public:  operator bool() const;};class Y : public X {private:  operator void*() const;};int f(Y const& y) {  return bool(y);}

⌨️ 快捷键说明

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