aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/kext10.C
blob: 74cfa24c96bda16c3113ceaa21b13c493d63976d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// APPLE LOCAL file
// Radar 3988061
// { dg-do compile { target powerpc*-*-darwin* } }
// { dg-options "-Os -static -fapple-kext" }
// the virtual call to IOHIDElement::free() is normally resolved
// at compile time, but with -fapple-kext we don't want this.
class IOHIDElement
{
protected:
    virtual ~IOHIDElement();
    virtual void free();
};
class IOHIDElementPrivate: public IOHIDElement
{
protected:
    virtual void free();
};
IOHIDElement::~IOHIDElement() {}
void IOHIDElementPrivate::free()
{
    IOHIDElement::free();
}
// { dg-final { scan-assembler-times "IOHIDElement4free" 1} }