Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify < %s |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Eli Friedman | c92e5e4 | 2008-06-09 03:52:40 +0000 | [diff] [blame] | 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 | } |