summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr43068.C
blob: 524fd23ee52cb463d3ea2da509ab63b03262c446 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-freorder-blocks -ftracer} */

struct A {
    virtual A *f();
};
struct B : virtual A {
    virtual B *f();
};
B *B::f() { return 0; }