Debian Codegraph @

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

raw
1 // PR c++/27547
2 // { dg-do compile }
3
4 int operator=(int); // { dg-error "5:.int operator=\\(int\\). must be a non-static member function" }
5
6 void foo()
7 {
8 operator=(0); // { dg-error "not defined" }
9 }