blob: f2f2a9514bdedaebb7dde3aed817fdbf024d64b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* APPLE LOCAL file -findirect-virtual-calls 15 Oct 2002 */
/* Radar 3008388: Positive C++ test case. */
/* Origin: Matt Austern <austern@apple.com> */
/* { dg-do compile } */
/* { dg-options "-fapple-kext" } */
struct B1 { virtual ~B1(); virtual void f(); }; /* ok */
struct D1 : B1 { }; /* ok */
struct X1 : D1 { virtual void f(); }; /* ok */
void X1::f() { D1::f(); } /* ok */
|