diff --git a/test/IDE/Inputs/custom-modules/ImportAsMemberError.h b/test/IDE/Inputs/custom-modules/ImportAsMemberError.h index 8d76c109dc35b..c3a59e7d2254b 100644 --- a/test/IDE/Inputs/custom-modules/ImportAsMemberError.h +++ b/test/IDE/Inputs/custom-modules/ImportAsMemberError.h @@ -19,7 +19,7 @@ typedef NSObject *ImportedProtocolBase_t; typedef NSObject *ErrorProto_t; // Instance and static member onto protocol -void mutateSomeStaticState() +void mutateSomeStaticState(void) __attribute__((swift_name("ErrorProto.mutateSomeStaticState()"))); // ok void mutateSomeInstanceState(ErrorProto_t self) __attribute__(( swift_name("ErrorProto.mutateSomeInstanceState(self:)"))); // error @@ -27,7 +27,5 @@ void mutateSomeInstanceState(ErrorProto_t self) __attribute__(( // Non-prototype declaration extern void IAMErrorStructHasPrototype(void) __attribute__((swift_name("ErrorStruct.hasPrototype()"))); // ok -extern void IAMErrorStructNonPrototype() - __attribute__((swift_name("ErrorStruct.nonPrototype()"))); // error #endif // IMPORT_AS_MEMBER_ERR_H diff --git a/test/IDE/import_as_member_objc.swift b/test/IDE/import_as_member_objc.swift index 5342ba40e292a..8d76f20b40bbd 100644 --- a/test/IDE/import_as_member_objc.swift +++ b/test/IDE/import_as_member_objc.swift @@ -43,8 +43,6 @@ import IAMError // Errors ErrorStruct.hasPrototype(); -ErrorStruct.nonPrototype(); - // expected-error@-1{{type 'ErrorStruct' has no member 'nonPrototype'}} // Protocols @objc class Foo : NSObject, IAMProto {}