Home | History | Annotate | Download | only in Sema
      1 // RUN: %clang_cc1 -fsyntax-only -verify < %s
      2 typedef float CGFloat;
      3 typedef struct _NSPoint { CGFloat x; CGFloat y; } NSPoint;
      4 typedef struct _NSSize { CGFloat width; CGFloat height; } NSSize;
      5 typedef struct _NSRect { NSPoint origin; NSSize size; } NSRect;
      6 
      7 extern const NSPoint NSZeroPoint;
      8 
      9 extern NSSize canvasSize();
     10 void func() {
     11    const NSRect canvasRect = { NSZeroPoint, canvasSize() };
     12 }
     13