Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.old-deja / g++.law / operators9.C
blob3c50cbdd0e7e2979f1e3c4b709dbebe5ab19daf0
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
9 class B
11 public:
12       operator=(B &); // { dg-error "no type" }
13       // { dg-message "B::operator=|no known conversion" "note" { target *-*-* } 12 }
16 void
17 test(B &b1, const B &b2)
19         b1 = b2;// { dg-error "match" }
20         // { dg-message "candidate" "candidate note" { target *-*-* } 19 }