* g++.old-deja/g++.pt/ptrmem5.C: New test.

From-SVN: r24385
This commit is contained in:
Alexandre Oliva 1998-12-20 07:45:13 +00:00 committed by Alexandre Oliva
parent 1ead53b31e
commit 7162b45d19
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
1998-12-20 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.pt/ptrmem5.C: New test.
1998-12-15 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.other/conv5.C: New test.

View File

@ -0,0 +1,17 @@
// Build don't link:
// Based on testcase by adriang@campbellsoft.com
struct Null {
template <typename T> operator T*() { return 0; }
template <typename C, typename T> operator T C::*() { return 0; }
#if WORK_AROUND
typedef int pmf();
template <typename C> operator pmf C::* () { return 0; }
#endif
} NULL;
int *pd = NULL;
int (*pf)() = NULL;
int Null::*pmd = NULL;
int (Null::*pmf)() = NULL; // gets bogus error - cannot convert - XFAIL *-*-*