Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / Inputs / nsvalue-boxed-expressions-support.h
blob1d34be1e86cc57fc30e670cf48d48aa5b0358c44
1 #ifndef NSVALUE_BOXED_EXPRESSIONS_SUPPORT_H
2 #define NSVALUE_BOXED_EXPRESSIONS_SUPPORT_H
4 #define BOXABLE __attribute__((objc_boxable))
6 typedef unsigned long NSUInteger;
7 typedef double CGFloat;
9 typedef struct BOXABLE _NSRange {
10 NSUInteger location;
11 NSUInteger length;
12 } NSRange;
14 typedef struct BOXABLE _NSPoint {
15 CGFloat x;
16 CGFloat y;
17 } NSPoint;
19 typedef struct BOXABLE _NSSize {
20 CGFloat width;
21 CGFloat height;
22 } NSSize;
24 typedef struct BOXABLE _NSRect {
25 NSPoint origin;
26 NSSize size;
27 } NSRect;
29 struct CGPoint {
30 CGFloat x;
31 CGFloat y;
33 typedef struct BOXABLE CGPoint CGPoint;
35 struct CGSize {
36 CGFloat width;
37 CGFloat height;
39 typedef struct BOXABLE CGSize CGSize;
41 struct CGRect {
42 CGPoint origin;
43 CGSize size;
45 typedef struct BOXABLE CGRect CGRect;
47 struct NSEdgeInsets {
48 CGFloat top;
49 CGFloat left;
50 CGFloat bottom;
51 CGFloat right;
53 typedef struct BOXABLE NSEdgeInsets NSEdgeInsets;
55 @interface NSValue
57 + (NSValue *)valueWithBytes:(const void *)value objCType:(const char *)type;
59 @end
61 NSRange getRange(void);
63 #endif // NSVALUE_BOXED_EXPRESSIONS_SUPPORT_H