Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify < %s |
Eli Friedman | c92e5e4 | 2008-06-09 03:52:40 +0000 | [diff] [blame] | 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 | } |