blob: 539820ae418c04c1cc6f1d79bfc5568f445b8c2a [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify < %s
Eli Friedmanc92e5e42008-06-09 03:52:40 +00002typedef float CGFloat;
3typedef struct _NSPoint { CGFloat x; CGFloat y; } NSPoint;
4typedef struct _NSSize { CGFloat width; CGFloat height; } NSSize;
5typedef struct _NSRect { NSPoint origin; NSSize size; } NSRect;
6
7extern const NSPoint NSZeroPoint;
8
9extern NSSize canvasSize();
10void func() {
11 const NSRect canvasRect = { NSZeroPoint, canvasSize() };
12}