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++.other/] [conv8.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// Origin: Jakub Jelinek 
3
 
4
class bar
5
{
6
public:
7
    bar();
8
    virtual ~bar();
9
    static void a();
10
};
11
 
12
class baz : public bar
13
{
14
};
15
 
16
class foo : virtual public baz
17
{
18
public:
19
    static void a();
20
    void b();
21
};
22
 
23
typedef void (bar::*T)();
24
T d;
25
 
26
void foo::a()
27
{
28
    typedef void(foo::*t)();
29
    t c = & foo::b;
30
    d = (T) c;                  // { dg-error "pointer to member" }
31
}

powered by: WebSVN 2.1.0

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