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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p4068.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// prms-id: 4068
3
 
4
struct A {
5
  A();
6
  typedef void (A::*F)();
7
  void d();
8
  void foo() { }
9
  F& f() { return f_; }
10
  F f_;
11
};
12
 
13
A::A() : f_(&A::foo) {
14
}
15
 
16
void A::d() {
17
  (this->*(f()))();
18
}
19
 
20
int main() {
21
  A a;
22
  a.d();
23
}

powered by: WebSVN 2.1.0

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