Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/operators9.C

raw
1 // { dg-do assemble }
2 // GROUPS passed operators
3 // opr-eq file
4 // Message-Id: <[email protected]>
5 // From: [email protected] (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
17 test(B &b1, const B &b2)
18 {
19 b1 = b2;// { dg-error "const" }
20 }