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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR rtl-optimization/36185
2
// { dg-do run }
3
// { dg-options "-O2 -fgcse-sm" }
4
 
5
struct Base {
6
        virtual ~Base() {}
7
        virtual void f() = 0;
8
};
9
struct Derived : Base {
10
        Derived();
11
        virtual void f() {}
12
};
13
struct Foo {
14
        Foo(Base&);
15
};
16
Derived::Derived() {
17
        Foo foo(*this);
18
}
19
Foo::Foo(Base& base) {
20
        base.f();
21
}
22
int main() {
23
        Derived d;
24
}

powered by: WebSVN 2.1.0

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