aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/g++.dg/lookup/anon7.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/g++.dg/lookup/anon7.C')
-rw-r--r--gcc-4.8.1/gcc/testsuite/g++.dg/lookup/anon7.C26
1 files changed, 0 insertions, 26 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/g++.dg/lookup/anon7.C b/gcc-4.8.1/gcc/testsuite/g++.dg/lookup/anon7.C
deleted file mode 100644
index 79cad0acb..000000000
--- a/gcc-4.8.1/gcc/testsuite/g++.dg/lookup/anon7.C
+++ /dev/null
@@ -1,26 +0,0 @@
-// PR c++/39560
-// { dg-options -Wunused }
-
-struct X { };
-
-class Z {
-public:
- X* cc(int c);
-};
-
-class F {
-public:
- typedef X* (Z::*MethO)(int);
- typedef X* (F::*MethF)(int);
- template<MethO m>
- X* xwrapper(int i) {
- union {
- Z *z;
- F *f;
- }; // { dg-bogus "unused" }
- f = this;
- return ((z->*m)(i));
- }
-};
-
-F::MethF meth = &F::xwrapper<&Z::cc>;