File tree Expand file tree Collapse file tree 5 files changed +25
-20
lines changed
default-arguments/two-modules
synthesized-accessors/two-modules Expand file tree Collapse file tree 5 files changed +25
-20
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
3
3
// RUN: mkdir -p %t/onone %t/wmo
4
- // RUN: %target-build-swift -emit-module -emit-module-path %t/onone/library.swiftmodule -module-name=library -emit-library %S/Inputs/library1.swift %S/Inputs/library2.swift -o %t/onone/library%{ target-shared- library-suffix} -swift-version 4
5
- // RUN: %target-build-swift %S/main.swift %t/onone/library%{target-shared-library-suffix} - I %t/onone/ -o %t/onone/main -swift-version 4
4
+ // RUN: %target-build-swift -emit-module -emit-module-path %t/onone/library.swiftmodule -module-name=library -emit-library %S/Inputs/library1.swift %S/Inputs/library2.swift -o %t/onone/% target-library-name(rary) -swift-version 4
5
+ // RUN: %target-build-swift %S/main.swift - I %t/onone/ -o %t/onone/main -swift-version 4 -L%t/onone -lrary
6
6
7
- // RUN: %target-build-swift -emit-module -emit-module-path %t/wmo/library.swiftmodule -module-name=library -emit-library -O -wmo %S/Inputs/library1.swift %S/Inputs/library2.swift -o %t/wmo/library%{ target-shared- library-suffix} -swift-version 4
8
- // RUN: %target-build-swift %S/main.swift %t/wmo/library%{target-shared-library-suffix} - I %t/wmo/ -o %t/wmo/main -swift-version 4
7
+ // RUN: %target-build-swift -emit-module -emit-module-path %t/wmo/library.swiftmodule -module-name=library -emit-library -O -wmo %S/Inputs/library1.swift %S/Inputs/library2.swift -o %t/wmo/% target-library-name(rary) -swift-version 4
8
+ // RUN: %target-build-swift %S/main.swift - I %t/wmo/ -o %t/wmo/main -swift-version 4 -L%t/wmo -lrary
9
9
10
10
import library
11
11
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
3
3
// RUN: mkdir -p %t/onone %t/wmo
4
- // RUN: %target-build-swift -emit-module -emit-module-path %t/onone/library.swiftmodule -module-name=library -emit-library %S/Inputs/library.swift -o %t/onone/library%{ target-shared- library-suffix}
5
- // RUN: %target-build-swift %S/main.swift %t/onone/library%{target-shared-library-suffix} -I %t/onone/ -o %t/onone/main
4
+ // RUN: %target-build-swift -emit-module -emit-module-path %t/onone/library.swiftmodule -module-name=library -emit-library %S/Inputs/library.swift -o %t/onone/% target-library-name(rary)
5
+ // RUN: %target-build-swift %S/main.swift -I %t/onone/ -o %t/onone/main -L %t/onone -lrary
6
6
7
- // RUN: %target-build-swift -emit-module -emit-module-path %t/wmo/library.swiftmodule -module-name=library -emit-library -O -wmo %S/Inputs/library.swift -o %t/wmo/library%{ target-shared- library-suffix}
8
- // RUN: %target-build-swift %S/main.swift %t/wmo/library%{target-shared-library-suffix} -I %t/wmo/ -o %t/wmo/main
7
+ // RUN: %target-build-swift -emit-module -emit-module-path %t/wmo/library.swiftmodule -module-name=library -emit-library -O -wmo %S/Inputs/library.swift -o %t/wmo/% target-library-name(rary)
8
+ // RUN: %target-build-swift %S/main.swift -I %t/wmo/ -o %t/wmo/main -L %t/wmo -lrary
9
9
10
10
import library
11
11
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-build-swift-dylib(%t/%{target-shared-library-prefix}A%{target-shared-library-suffix}) %S/Inputs/A.swift -emit-module -emit-module-path %t/A.swiftmodule -module-name A
2
+ //
3
+ // RUN: %target-build-swift-dylib(%t/%target-library-name(A)) %S/Inputs/A.swift -emit-module -emit-module-path %t/A.swiftmodule -module-name A
3
4
// RUN: %target-codesign %t/%target-library-name(A)
4
- // RUN: %target-build-swift-dylib(%t/%{target-shared-library-prefix}B%{target-shared-library-suffix}) %S/Inputs/B.swift -emit-module -emit-module-path %t/B.swiftmodule -module-name B -I%t -L%t -lA
5
+ //
6
+ // RUN: %target-build-swift-dylib(%t/%target-library-name(B)) %S/Inputs/B.swift -emit-module -emit-module-path %t/B.swiftmodule -module-name B -I%t -L%t -lA
5
7
// RUN: %target-codesign %t/%target-library-name(B)
6
- // RUN: %target-build-swift-dylib(%t/%{target-shared-library-prefix}C%{target-shared-library-suffix}) %S/Inputs/C.swift -emit-module -emit-module-path %t/C.swiftmodule -module-name C -I%t -L%t -lA
8
+ //
9
+ // RUN: %target-build-swift-dylib(%t/%target-library-name(C)) %S/Inputs/C.swift -emit-module -emit-module-path %t/C.swiftmodule -module-name C -I%t -L%t -lA
7
10
// RUN: %target-codesign %t/%target-library-name(C)
8
- // RUN: %target-build-swift %s -I %t -o %t/a.out -L %t %target-rpath(%t) -lA -lB -lC
9
- // RUN: %target-codesign %t/a.out
10
- // RUN: %target-run %t/a.out %t/%target-library-name(A) %t/%target-library-name(B) %t/%target-library-name(C) | %FileCheck %s
11
+ //
12
+ // RUN: %target-build-swift %s -I %t -o %t/main.out -L %t %target-rpath(%t) -lA -lB -lC
13
+ // RUN: %target-codesign %t/main.out
14
+ //
15
+ // RUN: %target-run %t/main.out %t/%target-library-name(A) %t/%target-library-name(B) %t/%target-library-name(C) | %FileCheck %s
11
16
12
17
// REQUIRES: executable_test
13
18
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-build-swift -emit-library %s %S/Inputs/protocol-conformance-member-helper.swift -o %t/libTest.dylib -module-name Test
3
- // RUN: llvm-nm %t/libTest.dylib | %FileCheck %s
2
+ // RUN: %target-build-swift -emit-library %s %S/Inputs/protocol-conformance-member-helper.swift -o %t/%target-library-name(Test) -module-name Test
3
+ // RUN: llvm-nm %t/%target-library-name(Test) | %FileCheck %s
4
4
5
5
// CHECK: $s4Test10CoolStructV10coolFactorSdvg
6
6
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
3
3
// RUN: mkdir -p %t/onone %t/wmo
4
- // RUN: %target-build-swift -emit-module -emit-module-path %t/onone/library.swiftmodule -module-name=library -emit-library %S/Inputs/library.swift -o %t/onone/library%{ target-shared- library-suffix}
5
- // RUN: %target-build-swift %S/main.swift %t/onone/library%{target-shared-library-suffix} -I %t/onone/ -o %t/onone/main
4
+ // RUN: %target-build-swift -emit-module -emit-module-path %t/onone/library.swiftmodule -module-name=library -emit-library %S/Inputs/library.swift -o %t/onone/% target-library-name(rary)
5
+ // RUN: %target-build-swift %S/main.swift -I %t/onone/ -o %t/onone/main -L %t/onone -lrary
6
6
7
- // RUN: %target-build-swift -emit-module -emit-module-path %t/wmo/library.swiftmodule -module-name=library -emit-library -O -wmo %S/Inputs/library.swift -o %t/wmo/library%{ target-shared- library-suffix}
8
- // RUN: %target-build-swift %S/main.swift %t/wmo/library%{target-shared-library-suffix} -I %t/wmo/ -o %t/wmo/main
7
+ // RUN: %target-build-swift -emit-module -emit-module-path %t/wmo/library.swiftmodule -module-name=library -emit-library -O -wmo %S/Inputs/library.swift -o %t/wmo/% target-library-name(rary)
8
+ // RUN: %target-build-swift %S/main.swift -I %t/wmo/ -o %t/wmo/main -L %t/wmo -lrary
9
9
10
10
import library
11
11
You can’t perform that action at this time.
0 commit comments