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:
parent
5adc18d7cb
commit
9896d23c07
2 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
18
gcc/testsuite/g++.old-deja/g++.other/pmf2.C
Normal file
18
gcc/testsuite/g++.old-deja/g++.other/pmf2.C
Normal 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 *-*-*
|
||||
}
|
Loading…
Add table
Reference in a new issue