mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 12:19:34 +08:00
* g++.old-deja/g++.pt/ptrmem5.C: New test.
From-SVN: r24385
This commit is contained in:
parent
1ead53b31e
commit
7162b45d19
@ -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.
|
||||
|
17
gcc/testsuite/g++.old-deja/g++.pt/ptrmem5.C
Normal file
17
gcc/testsuite/g++.old-deja/g++.pt/ptrmem5.C
Normal 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 *-*-*
|
Loading…
Reference in New Issue
Block a user