2020-03-05 09:26:11 +00:00
|
|
|
@interface Array
|
|
|
|
-count;
|
|
|
|
-lastObject;
|
|
|
|
@end
|
|
|
|
@interface Object
|
|
|
|
@end
|
2012-11-26 12:42:37 +00:00
|
|
|
@static entity waypoint_thinker;
|
|
|
|
@static Array *waypoint_queue;
|
|
|
|
void foo (void)
|
|
|
|
{
|
|
|
|
if ([waypoint_queue count]
|
|
|
|
&& (waypoint_thinker.@this = [waypoint_queue lastObject])) {
|
|
|
|
waypoint_thinker = nil; // just to deconfuse the dot graphs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int main ()
|
|
|
|
{
|
|
|
|
return 0; // test succeeds if compile succeeds
|
|
|
|
}
|
2022-02-02 14:51:37 +00:00
|
|
|
@attribute(no_va_list) id obj_msgSend (id receiver, SEL op, ...) = #0;
|
2012-11-26 12:42:37 +00:00
|
|
|
void __obj_exec_class (struct obj_module *msg) = #0;
|
|
|
|
@implementation Object
|
|
|
|
@end
|
|
|
|
@implementation Array
|
2020-03-05 09:26:11 +00:00
|
|
|
-count { return self; }
|
|
|
|
-lastObject { return nil; }
|
2012-11-26 12:42:37 +00:00
|
|
|
@end
|