Debian Codegraph @

gcc/testsuite/g++.dg/other/operator2.C

raw
1 // PR c++/28852
2 // { dg-do compile }
3
4 struct A
5 {
6 operator int&(int); // { dg-error "3:.A::operator int&\\(int\\). must have no arguments" }
7 };
8
9 A a;
10 int& i = a; // { dg-error "initialization" }