OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [attrib36.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/43031
2
// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
3
 
4
class T;
5
class L { };
6
class P : public L
7
{
8
  typedef void (__attribute__((__stdcall__)) T::*F) (L*);
9
  void f(bool aAdd);
10
};
11
class T
12
{
13
public:
14
    virtual void __attribute__((__stdcall__)) A(L *listener) = 0;
15
    virtual void __attribute__((__stdcall__)) R(L *listener) = 0;
16
};
17
void P::f(bool aAdd)
18
{
19
  F addRemoveEventListener = (aAdd ? &T::A : &T::R);
20
}

powered by: WebSVN 2.1.0

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