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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [inline17.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR tree-optimization/47420
2
// Testcase by Yu Simin 
3
 
4
// { dg-do compile }
5
// { dg-options "-O2" }
6
 
7
class fooControlBase
8
{
9
public:
10
    fooControlBase() { }
11
 
12
    virtual ~fooControlBase();
13
};
14
 
15
class fooControl : public fooControlBase
16
{
17
public:
18
    fooControl() { }
19
};
20
 
21
class sfTextEntryBase
22
{
23
public:
24
    sfTextEntryBase() {  }
25
    virtual ~sfTextEntryBase();
26
};
27
 
28
class sfTextEntry : public sfTextEntryBase
29
{
30
public:
31
    sfTextEntry()
32
    {
33
    }
34
};
35
 
36
class sfTextAreaBase
37
{
38
public:
39
    sfTextAreaBase() { }
40
    virtual ~sfTextAreaBase() { }
41
 
42
protected:
43
};
44
 
45
 
46
class sfTextCtrlBase : public fooControl,
47
                                   public sfTextAreaBase,
48
                                   public sfTextEntry
49
{
50
public:
51
 
52
 
53
 
54
    sfTextCtrlBase() { }
55
    virtual ~sfTextCtrlBase() { }
56
};
57
 
58
class sfTextCtrl : public sfTextCtrlBase
59
{
60
public:
61
    sfTextCtrl(void* parent)
62
    {
63
        Create(parent);
64
    }
65
    virtual ~sfTextCtrl();
66
 
67
    bool Create(void *parent);
68
 
69
 
70
};
71
 
72
sfTextCtrl* CreateTextCtrl()
73
{
74
    return new sfTextCtrl(0);
75
}
76
 
77
void foo ()
78
{
79
    new sfTextCtrl(0);
80
}

powered by: WebSVN 2.1.0

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