blob: 9d18e224f8eb476bbf0d26921fe077549c3127d9 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify < %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Eli Friedmanc92e5e42008-06-09 03:52:40 +00003typedef float CGFloat;
4typedef struct _NSPoint { CGFloat x; CGFloat y; } NSPoint;
5typedef struct _NSSize { CGFloat width; CGFloat height; } NSSize;
6typedef struct _NSRect { NSPoint origin; NSSize size; } NSRect;
7
8extern const NSPoint NSZeroPoint;
9
10extern NSSize canvasSize();
11void func() {
12 const NSRect canvasRect = { NSZeroPoint, canvasSize() };
13}