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