summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/pmf.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/pmf.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.jason/pmf.C7
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 000000000..b601dd9ff
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.jason/pmf.C
@@ -0,0 +1,7 @@
+// { dg-do assemble }
+// PRMS Id: 4333
+// Bug: g++ can't deal with casts to pointer to member function.
+
+class A { };
+typedef void (A::* pmf)();
+void foo () { (pmf) 0; }