diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/ptrmem5.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.pt/ptrmem5.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/ptrmem5.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/ptrmem5.C new file mode 100755 index 0000000..c9e6c9b --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/ptrmem5.C @@ -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 *-*-* |