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 1
1
// Tests lookup and mangling of local types
2
2
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`.
3
6
// 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
5
8
// RUN: %target-swift-ide-test -print-local-types -I %t -module-to-print LocalTypes -source-filename %s > %t.dump
6
9
// RUN: %FileCheck %s < %t.dump
7
10
// RUN: %FileCheck -check-prefix=NEGATIVE %s < %t.dump
Original file line number Diff line number Diff line change 3
3
// RUN: %empty-directory(%t)
4
4
5
5
// 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
7
7
8
8
// RUN: %target-swift-ide-test -print-local-types -I %t -module-to-print LocalTypesMerged -source-filename %s | %FileCheck %s -allow-deprecated-dag-overlap
9
9
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
3
3
// 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
5
5
6
6
// Generate the parseable interface of the current file via a single frontend invocation
7
7
// 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 1
1
// 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
3
3
// RUN: %FileCheck -check-prefix CHECK -check-prefix CHECK-MULTI-FILE %S/Inputs/enums-layout-helper.swift < %t/Lib.swiftinterface
4
4
// RUN: %target-swift-frontend -enable-objc-interop -compile-module-from-interface %t/Lib.swiftinterface -o %t/compiled-from-interface.swiftmodule -module-name Lib
5
5
// 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 6
6
// FIXME: We don't currently handle group info for multi-file builds,
7
7
// so just make sure we don't crash.
8
8
// 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
10
10
// RUN: %sourcekitd-test -req=interface-gen -module MyModule -group-name A -- -I %t.multifrontend -target %target-triple | %FileCheck -check-prefix=EMPTY %s
11
11
12
12
// GROUPA: MyClass
You can’t perform that action at this time.
0 commit comments