1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // expected-no-diagnostics
8 typedef struct CGPoint CGPoint;
14 typedef struct CGSize CGSize;
20 typedef struct CGRect CGRect;
22 typedef CGRect NSRect;
24 void HappySetFrame(NSRect frame) {}
26 __attribute__((objc_root_class))
27 @interface NSObject @end
29 @implementation NSObject
30 - (void) sadSetFrame: (NSRect)frame {}
34 HappySetFrame({{0,0}, {13,14}});
35 [self sadSetFrame: {{0,0}, {13,14}}];