OSDN Git Service

cp:
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / overload / operator1.C
1 typedef struct _GdkDrawable GdkDrawable; 
2 typedef struct _GdkDrawable GdkBitmap; 
3 typedef struct _GdkDrawable GdkPixmap; 
4  
5 class Drawable 
6
7 public: 
8  operator GdkDrawable* () const; 
9 }; 
10  
11  
12 class Pixmap : public Drawable 
13
14 public: 
15  operator GdkPixmap* () const; 
16  
17 }; 
18  
19  
20 class Bitmap : public Pixmap 
21
22 public: 
23   operator GdkBitmap* () const; 
24  
25 }; 
26  
27 class Event 
28
29 }; 
30  
31 Bitmap::operator GdkBitmap* () const 
32
33  return  0; 
34