diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/pmf.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/pmf.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/pmf.C b/gcc/testsuite/g++.old-deja/g++.jason/pmf.C new file mode 100644 index 00000000000..677363995b7 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/pmf.C @@ -0,0 +1,7 @@ +// PRMS Id: 4333 +// Bug: g++ can't deal with casts to pointer to member function. +// Build don't link: + +class A { }; +typedef void (A::* pmf)(); +void foo () { (pmf) 0; } |