]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Fri, 11 Feb 2005 21:12:56 +0000 (21:12 +0000)
committerNo Author <no-author@gcc.gnu.org>
Fri, 11 Feb 2005 21:12:56 +0000 (21:12 +0000)
'gcc-3_4-branch'.

From-SVN: r94894

gcc/testsuite/g++.dg/other/ptrmem6.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/other/ptrmem6.C b/gcc/testsuite/g++.dg/other/ptrmem6.C
new file mode 100644 (file)
index 0000000..5fe796e
--- /dev/null
@@ -0,0 +1,10 @@
+// PR c++/19666
+// Origin: Volker Reichelt <reichelt@gcc.gnu.org>
+// { dg-do compile }
+
+struct A { int i; };
+
+int foo (A *p)
+{
+  return &p->i - &(p->*&A::i);
+}