[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Sema / init-struct-qualified.c
blobec98e683143f214db94a11e0760cca0a27f3d217
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;
8 extern const NSPoint NSZeroPoint;
10 extern NSSize canvasSize(void);
11 void func(void) {
12 const NSRect canvasRect = { NSZeroPoint, canvasSize() };