summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/overload6.C
blob: 1f7fdfa57690a812b479e277b752a1d78e4f00e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// { dg-do assemble  }
// GROUPS passed overloading
struct temp_string {
  temp_string (const unsigned char);
};
  
class String {
 public:
  String& operator = (temp_string);
  String& operator = (const String&);
}; 
class S {
 public:
  operator temp_string & () const;
}; 

S lbuf;

static void e_r ()
{
  String a;
  a = lbuf;
 return;
}