quakeforge/tools/qfcc/test/ptr-array.r
Bill Currie 2c84ae4898 Don't let casting in constfold increment users.
This fixes Deek's temp notice. No new notices have shown up, so this should
be the correct fix. The constant folding code no longer calls cast_expr
directly, but rather uses an internal wrapper that decrements users after
cast_expr increments it, resulting in a no-op.
2010-12-12 15:37:26 +09:00

13 lines
143 B
R

@interface foo
{
unsigned count;
id []_objs;
}
@end
@implementation foo
- (void) foofoo: (id) anObject
{
_objs[count++] = anObject;
}
@end