|
1 | 1 | // RUN: %empty-directory(%t)
|
2 |
| -// RUN: %target-swift-frontend-typecheck %S/basic.swift \ |
3 |
| -// RUN: -emit-module-interface-path %t/basic.swiftinterface |
| 2 | +// RUN: %target-swift-frontend-typecheck %S/advanced.swift \ |
| 3 | +// RUN: -emit-module-interface-path %t/advanced.swiftinterface |
4 | 4 | // RUN: %target-swift-frontend -emit-ir -module-name Foo %s -I %t -g -o - \
|
5 | 5 | // RUN: | %FileCheck %s
|
6 | 6 | // RUN: %target-swift-frontend -emit-ir -module-name Foo %s -I %t -g -o - \
|
7 | 7 | // RUN: -sdk %t | %FileCheck %s --check-prefix=SDK
|
8 | 8 |
|
9 |
| -import basic |
| 9 | +import advanced |
10 | 10 |
|
11 |
| -// CHECK: !DIModule(scope: null, name: "basic", |
| 11 | +// CHECK: !DIModule(scope: null, name: "advanced", |
12 | 12 | // CHECK-SAME: includePath: "
|
13 |
| -// CHECK-SAME: basic.swiftinterface" |
| 13 | +// CHECK-SAME: advanced.swiftinterface" |
14 | 14 |
|
15 | 15 | // Even if the module interface is in the SDK, we still return the path
|
16 | 16 | // to the swiftinterface.
|
17 |
| -// SDK: !DIModule(scope: null, name: "basic", |
| 17 | +// SDK: !DIModule(scope: null, name: "advanced", |
18 | 18 | // SDK-SAME: includePath: "
|
19 |
| -// SDK-SAME: basic{{.*}}.swiftinterface" |
| 19 | +// SDK-SAME: advanced{{.*}}.swiftinterface" |
20 | 20 |
|
21 | 21 | func markUsed<T>(_ t: T) {}
|
22 |
| -markUsed(basic.foo(1, 2)) |
| 22 | +markUsed(advanced.foo(1, 2)) |
23 | 23 |
|
0 commit comments