File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-jit-run %s -I %S -enable-source-import | %FileCheck %s
3
- // REQUIRES: executable_test
2
+ // RUN: %target-build-swift -emit-library -o %t/libcomplex.%target-dylib-extension -emit-module %S/complex.swift -module-link-name complex
3
+ // RUN: %target-jit-run %s -I %t -L %t | %FileCheck %s
4
4
5
- // REQUIRES: swift_interpreter
5
+ // RUN: grep -v import %s > %t/main.swift
6
+ // RUN: %target-jit-run %t/main.swift %S/complex.swift | %FileCheck %s
6
7
7
- // FIXME: iOS: -enable-source-import plus %target-build-swift equals link errors
8
- // FIXME: This test uses IRGen with -enable-source-import; it may fail with -g.
8
+ // REQUIRES: executable_test
9
+ // REQUIRES: swift_interpreter
9
10
10
11
import complex
11
12
Original file line number Diff line number Diff line change 1
- // RUN: %target-jit-run -I %S -enable-source-import %s | %FileCheck %s
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-build-swift -emit-library -o %t/libcomplex.%target-dylib-extension -emit-module %S/complex.swift -module-link-name complex
3
+ // RUN: %target-jit-run %s -I %t -L %t | %FileCheck %s
4
+
5
+ // RUN: grep -v import %s > %t/main.swift
6
+ // RUN: %target-jit-run %t/main.swift %S/complex.swift | %FileCheck %s
7
+
2
8
// REQUIRES: executable_test
3
9
// REQUIRES: swift_interpreter
4
10
5
- // FIXME: iOS: -enable-source-import plus %target-build-swift equals link errors
6
- // FIXME: This test uses IRGen with -enable-source-import; it may fail with -g.
7
-
8
11
import complex
9
12
10
13
func printDensity( _ d: Int ) {
You can’t perform that action at this time.
0 commit comments