OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / ptrmem5.C
1 // { dg-do assemble  }
2
3 // Based on testcase by adriang@campbellsoft.com
4
5 struct Null {
6   template <typename T> operator T*() { return 0; }
7   template <typename C, typename T> operator T C::*() { return 0; }
8 #if WORK_AROUND
9   typedef int pmf();
10   template <typename C> operator pmf C::* () { return 0; }
11 #endif
12 } NULL;
13
14 int *pd = NULL;
15 int (*pf)() = NULL;
16 int Null::*pmd = NULL;
17 int (Null::*pmf)() = NULL;