two-stage4.c

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

C
21
字号
// Contributed by Douglas Gregor <doug.gregor@gmail.com>template<class T> struct wrap {};template<typename T> bool& operator==(wrap<T>, wrap<T>);template<typename T>void g(T, wrap<wrap<int> > x){  bool& b = x == x; // { dg-bogus "invalid initialization of reference" "" { xfail *-*-*} }}template<typename T> int& operator==(wrap<wrap<T> >, wrap<wrap<T> >);void h(){  wrap<wrap<int> > x;  g(17, x);}

⌨️ 快捷键说明

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