]> gcc.gnu.org Git - gcc.git/commitdiff
pmf2.C: New test.
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Sun, 11 Oct 1998 19:29:17 +0000 (19:29 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Sun, 11 Oct 1998 19:29:17 +0000 (19:29 +0000)
* g++.old-deja/g++.other/pmf2.C: New test.  invalid
pointer-to-member expression

From-SVN: r22994

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/pmf2.C [new file with mode: 0644]

index d3b17f21773e2812b359ee8d245504f06097a709..d877a3de063fd585cd36860a8af5e18fd0021e65 100644 (file)
@@ -1,5 +1,8 @@
 1998-10-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.other/pmf2.C: New test.  invalid
+       pointer-to-member expression
+
        * g++.old-deja/g++.other/friend5.C: New test.  bogus friend
        declaration causes ICE
 
diff --git a/gcc/testsuite/g++.old-deja/g++.other/pmf2.C b/gcc/testsuite/g++.old-deja/g++.other/pmf2.C
new file mode 100644 (file)
index 0000000..72de6b6
--- /dev/null
@@ -0,0 +1,18 @@
+// Build don't link:
+
+// submitted by David C Binderman <dcb@pncl.co.uk>
+
+struct S
+{
+       void f();
+};
+
+void (S ::* pmf) ();
+
+S * pf;
+
+void
+f()
+{
+       pmf = & pf->f; // ERROR - not a valid pmf expression - XFAIL *-*-*
+}
This page took 0.070042 seconds and 5 git commands to generate.