aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/kext6.C
blob: c3f7503e53d0c91415e3a3909f91ce6dc267f97a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* APPLE LOCAL file KEXT indirect-virtual-calls --sts */
/* Radar 3848842 Positive C++ test case. */
/* Origin F. Jahanian <fjahanian@apple.com> */
/* { dg-do compile } */
/* { dg-options "-Os  -fapple-kext" } */

struct Integer
{
 Integer ( void ) ;
 virtual ~Integer ( void ) ;
};

static void AppendMa(unsigned char *outBuffer);
static void AppendNonce();

extern "C" void afpfs_DHXLogin ()
{
    unsigned char *cptr = __null;
    AppendMa(cptr); 
    AppendNonce(); 
}

static void AppendNonce() { }


static void AppendMa(unsigned char *outBuffer)
{
 Integer Ma;
}