1 // { dg-do assemble  }
2 // GROUPS passed operators
3 // opr-eq file
4 // Message-Id: <9301141514.AA05925@mi.el.utwente.nl>
5 // From: klamer@mi.el.utwente.nl (Klamer Schutte)
6 // Subject: 2.3.3: failed to detect error
7 // Date: Thu, 14 Jan 93 16:14:21 +0100
8 
9 class B
10 {
11 public:
12       operator=(B &); // { dg-error "no type" }
13       // { dg-message "B::operator=|no known conversion" "note" { target *-*-* } .-1 }
14 };
15 
16 void
test(B & b1,const B & b2)17 test(B &b1, const B &b2)
18 {
19         b1 = b2;// { dg-error "const" }
20 }
21