pmf2.C: New test.

* g++.old-deja/g++.other/pmf2.C: New test.  invalid
	pointer-to-member expression

From-SVN: r22994
This commit is contained in:
Alexandre Oliva 1998-10-11 19:29:17 +00:00 committed by Alexandre Oliva
parent 5adc18d7cb
commit 9896d23c07
2 changed files with 21 additions and 0 deletions

View 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

View file

@ -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 *-*-*
}