Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / ptrmem5.C
blob54e975edab6bdbc850541c198d8bdce9de324dea
1 // { dg-do assemble  }
3 // Based on testcase by adriang@campbellsoft.com
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;
14 int *pd = NULL;
15 int (*pf)() = NULL;
16 int Null::*pmd = NULL;
17 int (Null::*pmf)() = NULL;