summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/operator1.C
blob: f4d1f53f14e4ccdd0d94ea9a87ef867d5ef5df39 (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
25
26
27
28
29
30
31
32
33
34
typedef struct _GdkDrawable GdkDrawable; 
typedef struct _GdkDrawable GdkBitmap; 
typedef struct _GdkDrawable GdkPixmap; 
 
class Drawable 
{ 
public: 
 operator GdkDrawable* () const; 
}; 
 
 
class Pixmap : public Drawable 
{ 
public: 
 operator GdkPixmap* () const; 
 
}; 
 
 
class Bitmap : public Pixmap 
{ 
public: 
  operator GdkBitmap* () const; 
 
}; 
 
class Event 
{ 
}; 
 
Bitmap::operator GdkBitmap* () const 
{ 
 return  0; 
}