blob: 8af07af04108e3b80e8c65f2739f62b65fdfc55d [file] [log] [blame]
/* APPLE LOCAL file non lvalue assign */
/* { dg-do compile } */
/* { dg-options "-fnon-lvalue-assign" } */
/* APPLE LOCAL radar 4894756 */
#include "../objc/execute/Object2.h"
typedef struct _NSPoint {
float x;
float y;
} NSPoint;
typedef NSPoint *NSPointPointer;
typedef NSPoint *NSPointArray;
typedef struct _NSSize {
float width;
float height;
} NSSize;
typedef struct _NSRect {
NSPoint origin;
NSSize size;
} NSRect;
@interface NSLayoutManager: Object {
NSRect *_cachedRectArray;
}
- (void)_growCachedRectArrayToSize:(unsigned)newSize;
@end
@implementation NSLayoutManager
- (void)_growCachedRectArrayToSize:(unsigned)newSize {
( NSRect *)_cachedRectArray = nil; /* { dg-error "assignment to cast is illegal, lvalue casts are not supported" } */
}
@end