aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/ptrmem5.C
blob: c9e6c9b9841665d071ae935702c225c00b6b3ec9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 *-*-*