FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / conv8.C
blob9ab3b7421fd55a3228262188cad28dab0f589c52
1 // Build don't link:
2 // Origin: Jakub Jelinek <jakub@redhat.com>
4 class bar
6 public:
7     bar();
8     virtual ~bar();
9     static void a();
12 class baz : public bar
16 class foo : virtual public baz
18 public:
19     static void a();
20     void b();
23 typedef void (bar::*T)();
24 T d;
26 void foo::a()
28     typedef void(foo::*t)();
29     t c = & foo::b;
30     d = (T) c;                  // WARNING - pointer to member cast