Switch ABI tests to using the real SDK.

Swift SVN r13423
This commit is contained in:
Mark Lacey
2014-02-04 09:30:21 +00:00
parent aadcf6b1e4
commit 1a97f18887
3 changed files with 40 additions and 36 deletions

View File

@@ -23,36 +23,8 @@ struct NSRect {
} size;
};
struct Trio {
double i;
double j;
double k;
};
struct IntPair {
int a;
int b;
};
struct NestedInts {
struct A {
int value;
} a;
struct B {
int value;
} b;
};
typedef long NSInteger;
#if !defined(OBJC_HIDE_64) && TARGET_OS_IPHONE && __LP64__
typedef bool BOOL;
#else
typedef signed char BOOL;
// BOOL is explicitly signed so @encode(BOOL) == "c" rather than "C"
// even if -funsigned-char is used.
#endif
@interface Gizmo : NSObject
- (Gizmo*) clone NS_RETURNS_RETAINED;
- (Gizmo*) duplicate;
@@ -66,7 +38,6 @@ typedef signed char BOOL;
- (void) setFrame: (struct NSRect) rect;
- (void) frob;
+ (void) runce;
- (BOOL) negate:(BOOL) b;
@end
static inline int innerZero(void) { return 0; }
@@ -96,13 +67,6 @@ NSString *NSStringFromRect(struct NSRect r);
- (void)foo;
@end
@interface NSStructReturns
- (struct Rect)newRect;
- (struct Trio)newTrio;
- (struct IntPair)newPair;
- (struct NestedInts)newNestedInts;
@end
typedef NS_ENUM(unsigned short, NSRuncingOptions) {
NSRuncingMince = 123,
NSRuncingQuinceSliced = 4567,