Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
operator1.C
blob: 121c106ad18ef4598088f1163a59ccbec33a637c [
file
] [
log
] [
blame
]
// PR c++/27547
// { dg-do compile }
int
operator
=(
int
);
// { dg-error "5:.int operator=\\(int\\). must be a non-static member function" }
void
foo
()
{
operator
=(
0
);
// { dg-error "not defined" }
}