Debian Codegraph @

gcc/testsuite/g++.dg/other/ptrmem6.C

raw
1 // PR c++/19666
2 // Origin: Volker Reichelt <[email protected]>
3 // { dg-do compile }
4
5 struct A { int i; };
6
7 int foo (A *p)
8 {
9 return &p->i - &(p->*&A::i);
10 }