blob: 9e18562f252e3b72eae0884bb3e1120add2d557d [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-warning "target of assignment not really an lvalue" } */
}
@end