From 9b49d0cf764aaea2e019ce189448d3e8368a2bd8 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Tue, 22 Jun 2021 12:49:04 +0300 Subject: [PATCH] Native: fix testObjCExport testdata after 53baef88 (was broken during rebase) --- .../tests/objcexport/expectedLazy.h | 36 +++++++++---------- .../tests/objcexport/expectedLazyNoGenerics.h | 36 +++++++++---------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/kotlin-native/backend.native/tests/objcexport/expectedLazy.h b/kotlin-native/backend.native/tests/objcexport/expectedLazy.h index 45e065d5794..04022cf5128 100644 --- a/kotlin-native/backend.native/tests/objcexport/expectedLazy.h +++ b/kotlin-native/backend.native/tests/objcexport/expectedLazy.h @@ -776,24 +776,6 @@ __attribute__((swift_name("Kt43599Kt"))) @property (class, readonly) NSString *topLevelLateinitProperty __attribute__((swift_name("topLevelLateinitProperty"))); @end; -__attribute__((swift_name("Host"))) -@protocol KtHost -@required -@property (readonly) NSString *test __attribute__((swift_name("test"))); -@end; - -__attribute__((swift_name("AbstractHost"))) -@interface KtAbstractHost : KtBase -- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); -+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; - -__attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("Kt46431Kt"))) -@interface KtKt46431Kt : KtBase -+ (id)createAbstractHost __attribute__((swift_name("createAbstractHost()"))); -@end; - __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestObject"))) @interface KtKT43780TestObject : KtBase @@ -874,6 +856,24 @@ __attribute__((swift_name("KT43780Enum.Companion"))) @property (readonly) int32_t x __attribute__((swift_name("x"))); @end; +__attribute__((swift_name("Host"))) +@protocol KtHost +@required +@property (readonly) NSString *test __attribute__((swift_name("test"))); +@end; + +__attribute__((swift_name("AbstractHost"))) +@interface KtAbstractHost : KtBase +- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); ++ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Kt46431Kt"))) +@interface KtKt46431Kt : KtBase ++ (id)createAbstractHost __attribute__((swift_name("createAbstractHost()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("LibraryKt"))) @interface KtLibraryKt : KtBase diff --git a/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h b/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h index 5d3ca9ac771..e4ef6ca9ab2 100644 --- a/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h +++ b/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h @@ -718,24 +718,6 @@ __attribute__((swift_name("Kt43599Kt"))) @property (class, readonly) NSString *topLevelLateinitProperty __attribute__((swift_name("topLevelLateinitProperty"))); @end; -__attribute__((swift_name("Host"))) -@protocol KtHost -@required -@property (readonly) NSString *test __attribute__((swift_name("test"))); -@end; - -__attribute__((swift_name("AbstractHost"))) -@interface KtAbstractHost : KtBase -- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); -+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; - -__attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("Kt46431Kt"))) -@interface KtKt46431Kt : KtBase -+ (id)createAbstractHost __attribute__((swift_name("createAbstractHost()"))); -@end; - __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestObject"))) @interface KtKT43780TestObject : KtBase @@ -816,6 +798,24 @@ __attribute__((swift_name("KT43780Enum.Companion"))) @property (readonly) int32_t x __attribute__((swift_name("x"))); @end; +__attribute__((swift_name("Host"))) +@protocol KtHost +@required +@property (readonly) NSString *test __attribute__((swift_name("test"))); +@end; + +__attribute__((swift_name("AbstractHost"))) +@interface KtAbstractHost : KtBase +- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); ++ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Kt46431Kt"))) +@interface KtKt46431Kt : KtBase ++ (id)createAbstractHost __attribute__((swift_name("createAbstractHost()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("LibraryKt"))) @interface KtLibraryKt : KtBase