type; this isn't explicitly stated in the standard, but it doesn't really make sense for them to have an effect here. Fixes the included testcase, sent to me by Steve Naroff. llvm-svn: 52113
13 lines
393 B
C
13 lines
393 B
C
// RUN: clang -fsyntax-only -verify < %s
|
|
typedef float CGFloat;
|
|
typedef struct _NSPoint { CGFloat x; CGFloat y; } NSPoint;
|
|
typedef struct _NSSize { CGFloat width; CGFloat height; } NSSize;
|
|
typedef struct _NSRect { NSPoint origin; NSSize size; } NSRect;
|
|
|
|
extern const NSPoint NSZeroPoint;
|
|
|
|
extern NSSize canvasSize();
|
|
void func() {
|
|
const NSRect canvasRect = { NSZeroPoint, canvasSize() };
|
|
}
|