Skip to content

Commit a330db6

Browse files
committed
SILGen: stub out CoreData
One of the SILGen tests uses CoreData. Provide a stubbed out definition sufficient for the tests.
1 parent 61c5346 commit a330db6

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
@import Foundation;
3+
4+
@interface NSEntityDescription : NSObject
5+
@end
6+
7+
@interface NSManagedObjectContext : NSObject
8+
@end
9+
10+
@interface NSManagedObject : NSObject
11+
- (__kindof NSManagedObject *)initWithEntity:(NSEntityDescription *)entity
12+
insertIntoManagedObjectContext:(NSManagedObjectContext *)context;
13+
@property(nonatomic, readonly, strong) NSEntityDescription *entity;
14+
+ (NSEntityDescription *)entity;
15+
@end
16+

test/SILGen/Inputs/usr/include/module.map

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ module AppKit {
2626
header "AppKit.h"
2727
export *
2828
}
29+
module CoreData {
30+
header "CoreData.h"
31+
export *
32+
}
2933
module Dispatch {
3034
header "dispatch.h"
3135
export *

0 commit comments

Comments
 (0)