File tree Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Expand file tree Collapse file tree 5 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11// Tests lookup and mangling of local types
22
3+ // Avoid emitting the module separately since that would skip non-inlinable
4+ // function bodies without types, and we want to print the decls in
5+ // `singleDefaultArgument`.
36// RUN: %empty-directory(%t)
4- // RUN: %target-swiftc_driver -v -emit-module -module-name LocalTypes -o %t/LocalTypes.swiftmodule %s
7+ // RUN: %target-swiftc_driver -v -no-emit-module-separately - emit-module -module-name LocalTypes -o %t/LocalTypes.swiftmodule %s
58// RUN: %target-swift-ide-test -print-local-types -I %t -module-to-print LocalTypes -source-filename %s > %t.dump
69// RUN: %FileCheck %s < %t.dump
710// RUN: %FileCheck -check-prefix=NEGATIVE %s < %t.dump
Original file line number Diff line number Diff line change 33// RUN: %empty-directory(%t)
44
55// Create separate modules and merge them together
6- // RUN: %target-swiftc_driver -v -emit-module -module-name LocalTypesMerged -o %t/LocalTypesMerged.swiftmodule %s %S/local_types.swift
6+ // RUN: %target-swiftc_driver -v -no-emit-module-separately - emit-module -module-name LocalTypesMerged -o %t/LocalTypesMerged.swiftmodule %s %S/local_types.swift
77
88// RUN: %target-swift-ide-test -print-local-types -I %t -module-to-print LocalTypesMerged -source-filename %s | %FileCheck %s -allow-deprecated-dag-overlap
99
Original file line number Diff line number Diff line change 11// RUN: %empty-directory(%t)
22
33// Generate the parseable interface of the current file via the merge-modules step
4- // RUN: %target-build-swift -emit-module -o %t/Test.swiftmodule -emit-module-interface-path %t/TestMerge.swiftinterface -module-name Test %s
4+ // RUN: %target-build-swift -no-emit-module-separately - emit-module -o %t/Test.swiftmodule -emit-module-interface-path %t/TestMerge.swiftinterface -module-name Test %s
55
66// Generate the parseable interface of the current file via a single frontend invocation
77// RUN: %target-swift-frontend -typecheck -enable-objc-interop -emit-module-interface-path %t/TestSingle.swiftinterface -module-name Test %s
Original file line number Diff line number Diff line change 11// RUN: %empty-directory(%t)
2- // RUN: %target-build-swift -emit-module-interface-path %t/Lib.swiftinterface -emit-module -o %t/unused.swiftmodule -enable-library-evolution -Xfrontend -enable-objc-interop -Xfrontend -disable-objc-attr-requires-foundation-module -swift-version 5 %S/Inputs/enums-layout-helper.swift -module-name Lib
2+ // RUN: %target-build-swift -no-emit-module-separately - emit-module-interface-path %t/Lib.swiftinterface -emit-module -o %t/unused.swiftmodule -enable-library-evolution -Xfrontend -enable-objc-interop -Xfrontend -disable-objc-attr-requires-foundation-module -swift-version 5 %S/Inputs/enums-layout-helper.swift -module-name Lib
33// RUN: %FileCheck -check-prefix CHECK -check-prefix CHECK-MULTI-FILE %S/Inputs/enums-layout-helper.swift < %t/Lib.swiftinterface
44// RUN: %target-swift-frontend -enable-objc-interop -compile-module-from-interface %t/Lib.swiftinterface -o %t/compiled-from-interface.swiftmodule -module-name Lib
55// RUN: %target-swift-frontend -enable-objc-interop -O -emit-ir -primary-file %s -I %t -Xllvm -swiftmergefunc-threshold=0 | %FileCheck %s
Original file line number Diff line number Diff line change 66// FIXME: We don't currently handle group info for multi-file builds,
77// so just make sure we don't crash.
88// RUN: %empty-directory(%t.multifrontend)
9- // RUN: %target-build-swift -module-name MyModule -emit-module -emit-module-path %t.multifrontend/MyModule.swiftmodule -Xfrontend -group-info-path -Xfrontend %S/Inputs/group.json %S/Inputs/swift_mod.swift %S/Inputs/swift_mod_syn.swift
9+ // RUN: %target-build-swift -module-name MyModule -emit-module -emit-module-path %t.multifrontend/MyModule.swiftmodule -no-emit-module-separately -Xfrontend -group-info-path -Xfrontend %S/Inputs/group.json %S/Inputs/swift_mod.swift %S/Inputs/swift_mod_syn.swift
1010// RUN: %sourcekitd-test -req=interface-gen -module MyModule -group-name A -- -I %t.multifrontend -target %target-triple | %FileCheck -check-prefix=EMPTY %s
1111
1212// GROUPA: MyClass
You can’t perform that action at this time.
0 commit comments