* fi.po: Update.
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / anon7.C
blob79cad0acb99bac6a1f38c6cae7eb32327621e31b
1 // PR c++/39560
2 // { dg-options -Wunused }
4 struct X { };
6 class Z {
7 public:
8   X* cc(int c);
9 };
11 class F {
12 public:
13   typedef X* (Z::*MethO)(int);
14   typedef X* (F::*MethF)(int);
15   template<MethO m>
16   X* xwrapper(int i) {
17     union {
18       Z *z;
19       F *f;
20     };                          // { dg-bogus "unused" }
21     f = this;
22     return ((z->*m)(i));
23   }
26 F::MethF meth = &F::xwrapper<&Z::cc>;