Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / conv8.C
blob4f2bd43c115f1a2f0977d2166d3e0f97b1a2cabc
1 // { dg-do assemble  }
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;                  // { dg-warning "" } pointer to member cast