OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [anon7.C] - Blame information for rev 301

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/39560
2
// { dg-options -Wunused }
3
 
4
struct X { };
5
 
6
class Z {
7
public:
8
  X* cc(int c);
9
};
10
 
11
class F {
12
public:
13
  typedef X* (Z::*MethO)(int);
14
  typedef X* (F::*MethF)(int);
15
  template
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
  }
24
};
25
 
26
F::MethF meth = &F::xwrapper<&Z::cc>;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.