blob: 2aca6835a6b4e6cad3ae95fac266e2749863f978 [file] [log] [blame]
/* APPLE LOCAL file 6515001 */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { scan-assembler-not "cmove" } */
typedef struct __NSSymbol* NSSymbol;
static struct {
unsigned pad[2];
unsigned n_value;
NSSymbol realSymbol;
} sLastLookup;
void foo(void *);
void* NSAddressOfSymbol(NSSymbol symbol)
{
if ( (void*)symbol == (void*)(&sLastLookup) )
symbol = sLastLookup.realSymbol;
foo(symbol);
return symbol;
}