|
5 | 5 | // RUN: touch %t/new_module.swiftmodule/ppc65.swiftmodule
|
6 | 6 | // RUN: touch %t/new_module.swiftmodule/i387.swiftdoc
|
7 | 7 | // RUN: touch %t/new_module.swiftmodule/ppc65.swiftdoc
|
8 |
| -// RUN: not %target-swift-frontend %s -typecheck -I %t -show-diagnostics-after-fatal 2>&1 | %FileCheck %s -DTARGET_ARCHITECTURE=$(echo %target-swiftmodule-name | cut -d. -f1) |
| 8 | +// RUN: not %target-swift-frontend %s -typecheck -I %t -show-diagnostics-after-fatal 2>&1 | %FileCheck %s -check-prefix=CHECK -check-prefix CHECK-ALL -DTARGET_ARCHITECTURE=$(echo %target-swiftmodule-name | cut -d. -f1) |
9 | 9 |
|
10 | 10 | // RUN: %empty-directory(%t)
|
11 | 11 | // RUN: mkdir -p %t/new_module.framework/Modules/new_module.swiftmodule/
|
12 | 12 | // RUN: touch %t/new_module.framework/Modules/new_module.swiftmodule/i387.swiftmodule
|
13 | 13 | // RUN: touch %t/new_module.framework/Modules/new_module.swiftmodule/ppc65.swiftmodule
|
14 |
| -// RUN: not %target-swift-frontend %s -F %t -typecheck -show-diagnostics-after-fatal 2>&1 | %FileCheck %s -DTARGET_ARCHITECTURE=$(echo %target-swiftmodule-name | cut -d. -f1) |
| 14 | +// RUN: not %target-swift-frontend %s -F %t -typecheck -show-diagnostics-after-fatal 2>&1 | %FileCheck %s -check-prefix=CHECK -check-prefix CHECK-ALL -DTARGET_ARCHITECTURE=$(echo %target-swiftmodule-name | cut -d. -f1) |
15 | 15 |
|
16 |
| -//CHECK: {{.*}} error: could not find module 'new_module' for architecture '[[TARGET_ARCHITECTURE]]'; found: {{ppc65, i387|i387, ppc65}} |
17 |
| -//CHECK-NEXT: import new_module |
18 |
| -//CHECK-NEXT: ^ |
19 |
| -//CHECK: error: no such module 'new_module' |
20 |
| -//CHECK-NEXT: import new_module |
21 |
| -//CHECK-NEXT: ^ |
22 |
| -//CHECK: error: use of unresolved identifier 'new_module' |
23 |
| -//CHECK-NEXT: new_module.foo() |
24 |
| -//CHECK-NEXT: ^~~~~~~~~~ |
| 16 | +// RUN: %empty-directory(%t) |
| 17 | +// RUN: mkdir %t/new_module.swiftmodule |
| 18 | +// RUN: not %target-swift-frontend %s -typecheck -I %t -show-diagnostics-after-fatal 2>&1 | %FileCheck %s -check-prefix=CHECK-EMPTY -check-prefix CHECK-ALL -DTARGET_ARCHITECTURE=$(echo %target-swiftmodule-name | cut -d. -f1) |
| 19 | + |
| 20 | +// CHECK-ALL-NOT: error: |
| 21 | +// CHECK: {{.*}} error: could not find module 'new_module' for architecture '[[TARGET_ARCHITECTURE]]'; found: {{ppc65, i387|i387, ppc65}} |
| 22 | +// CHECK-NEXT: import new_module |
| 23 | +// CHECK-NEXT: ^ |
| 24 | +// CHECK-ALL: error: no such module 'new_module' |
| 25 | +// CHECK-ALL-NEXT: import new_module |
| 26 | +// CHECK-ALL-NEXT: ^ |
| 27 | +// CHECK-ALL: error: use of unresolved identifier 'new_module' |
| 28 | +// CHECK-ALL-NEXT: new_module.foo() |
| 29 | +// CHECK-ALL-NEXT: ^~~~~~~~~~ |
| 30 | +// CHECK-ALL-NOT: error: |
25 | 31 |
|
26 | 32 | import new_module
|
27 | 33 |
|
|
0 commit comments