aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-10-11 19:29:17 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-10-11 19:29:17 +0000
commit9896d23c0797e7373707b7f0cbf0ec85d2585d72 (patch)
tree2c99388830a4b5f9626a3bd44730434fc887a714 /gcc
parent5adc18d7cb34da9b69e676fa14ba41797a66838d (diff)
downloadgcc-9896d23c0797e7373707b7f0cbf0ec85d2585d72.zip
gcc-9896d23c0797e7373707b7f0cbf0ec85d2585d72.tar.gz
gcc-9896d23c0797e7373707b7f0cbf0ec85d2585d72.tar.bz2
pmf2.C: New test.
* g++.old-deja/g++.other/pmf2.C: New test. invalid pointer-to-member expression From-SVN: r22994
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/g++.old-deja/g++.other/pmf2.C18
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d3b17f2..d877a3d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
index 0000000..72de6b6
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.other/pmf2.C
@@ -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 *-*-*
+}