diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 97a1b12b450..1ab0ec23fe4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2005-02-11 Jakub Jelinek + PR c++/19666 + * gcc/testsuite/g++.dg/other/ptrmem6.C: New test. + PR middle-end/19858 * gcc.c-torture/compile/20050210-1.c: New test. diff --git a/gcc/testsuite/g++.dg/other/ptrmem6.C b/gcc/testsuite/g++.dg/other/ptrmem6.C new file mode 100644 index 00000000000..5fe796e1c04 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/ptrmem6.C @@ -0,0 +1,10 @@ +// PR c++/19666 +// Origin: Volker Reichelt +// { dg-do compile } + +struct A { int i; }; + +int foo (A *p) +{ + return &p->i - &(p->*&A::i); +}