Skip to content

Commit f46a603

Browse files
jrose-appleDavide Italiano
authored andcommitted
[test] Fix mixed-target-using-module.swift autolinking checks (#19308)
Negative tests aren't great to begin with, and this one was looking for a pattern that could no longer happen. This particular example doesn't seem to have regressed, but something similar has that I'm still looking into.
1 parent d5e19c4 commit f46a603

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ClangImporter/MixedSource/mixed-target-using-module.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -typecheck %s -verify -enable-objc-interop -disable-objc-attr-requires-foundation-module
2-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -enable-objc-interop -emit-ir %S/../../Inputs/empty.swift - | %FileCheck -check-prefix=CHECK-AUTOLINK %s
2+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -enable-objc-interop -emit-ir %S/../../Inputs/empty.swift | %FileCheck -check-prefix=CHECK-AUTOLINK %s
33
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -F %S/Inputs/mixed-target/ -module-name WrongName -import-underlying-module -typecheck %s -enable-objc-interop -disable-objc-attr-requires-foundation-module 2>&1 | %FileCheck -check-prefix=CHECK-WRONG-NAME %s
44

55
// CHECK-AUTOLINK: !llvm.linker.options = !{
6-
// CHECK-AUTOLINK-NOT: metadata !"-framework", metadata !"Mixed"
6+
// CHECK-AUTOLINK-NOT: !"-framework"
77

88
// CHECK-WRONG-NAME: underlying Objective-C module 'WrongName' not found
99

0 commit comments

Comments
 (0)