Skip to content

Commit 0114b4b

Browse files
committed
Revert "[ClangImporter] Don't expect unmodularized structs to appear in 2 modules"
This reverts commit c8c3f9b. With `isThisDeclarationADemotedDefinition` flag we expect the same struct to be available in multiple modules.
1 parent 91a4869 commit 0114b4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/ClangImporter/overlay.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ let encoding: UInt = NSUTF8StringEncoding
1717
let viaTypedef: Redeclaration.NSPoint = AppKit.NSPoint(x: 0, y: 0)
1818
Redeclaration.NSStringToNSString(AppKit.NSStringToNSString("abc")) // expected-warning {{result of call to 'NSStringToNSString' is unused}}
1919

20-
/// The following error should soon be introduced by https://github.com/apple/llvm-project/pull/3497.
21-
let viaStruct: Redeclaration.FooStruct1 = AppKit.FooStruct1() // expected-error * {{module 'AppKit' has no member named 'FooStruct1'}}
20+
let viaStruct: Redeclaration.FooStruct1 = AppKit.FooStruct1()
2221
let forwardDecl: Redeclaration.Tribool = AppKit.Tribool() // expected-error {{no type named 'Tribool' in module 'Redeclaration'}}

0 commit comments

Comments
 (0)