2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / ptrmem4.C
blob4f3f541e583139e7d48ea2ba43397f3660a2465e
1 // Bug: This checks that the pointer-to-member-function type is not
2 // shared between differently-qualified pointer-to-method types.
4 // { dg-do compile }
5 struct A
6
7   void f () {}
8 };
10 void (A::*const cp)() = &A::f;
12 int main ()
13
14   void (A::* p)();
15   void (A::** ip)() = &p;
17   *ip = &A::f;