OSDN Git Service

* g++.dg/other/anon5.C: Don't depend on line number for error message.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / ptrmem6.C
1 // PR c++/19666
2 // Origin: Volker Reichelt <reichelt@gcc.gnu.org>
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 }