mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-05 08:51:28 +00:00
23 lines
242 B
R
23 lines
242 B
R
@attribute(no_va_list) id func (id self, SEL bar, ...)
|
|
{
|
|
return (id)1;
|
|
}
|
|
|
|
IMP get_func ()
|
|
{
|
|
return func;
|
|
}
|
|
|
|
id foo (IMP msg)
|
|
{
|
|
if (!(msg = get_func ())) {
|
|
return nil;
|
|
}
|
|
return msg(nil, nil);
|
|
}
|
|
|
|
int
|
|
main()
|
|
{
|
|
return foo (nil) == nil;
|
|
}
|