1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify < %s 2*f4a2713aSLionel Sambuc // expected-no-diagnostics 3*f4a2713aSLionel Sambuc typedef float CGFloat; 4*f4a2713aSLionel Sambuc typedef struct _NSPoint { CGFloat x; CGFloat y; } NSPoint; 5*f4a2713aSLionel Sambuc typedef struct _NSSize { CGFloat width; CGFloat height; } NSSize; 6*f4a2713aSLionel Sambuc typedef struct _NSRect { NSPoint origin; NSSize size; } NSRect; 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc extern const NSPoint NSZeroPoint; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc extern NSSize canvasSize(); func()11*f4a2713aSLionel Sambucvoid func() { 12*f4a2713aSLionel Sambuc const NSRect canvasRect = { NSZeroPoint, canvasSize() }; 13*f4a2713aSLionel Sambuc } 14