☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
operator2.C
☽
☼
gcc/testsuite/g++.dg/other/operator2.C
code
plain
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" }