Skip to content

Commit c8c3f9b

Browse files
committed
[ClangImporter] Don't expect unmodularized structs to appear in 2 modules
1 parent aa54818 commit c8c3f9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/ClangImporter/overlay.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ 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-
let viaStruct: Redeclaration.FooStruct1 = AppKit.FooStruct1()
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'}}
2122
let forwardDecl: Redeclaration.Tribool = AppKit.Tribool() // expected-error {{no type named 'Tribool' in module 'Redeclaration'}}

0 commit comments

Comments
 (0)