summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/operator1.C
blob: 86841c9995696a3220335481898107224dfc8744 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/27547
// { dg-do compile }

int operator=(int);  // { dg-error "member function" }

void foo()
{
  operator=(0);  // { dg-error "not defined" }
}