|
1 | 1 | // RUN: %empty-directory(%t)
|
2 |
| -// REQUIRES: rdar106819422 |
3 | 2 |
|
4 | 3 | // Package name should have valid characters
|
5 |
| -// RUN: not --crash %target-swift-frontend -module-name Logging -package-name My-Logging%Pkg %s -emit-module -emit-module-path %t/Logging.swiftmodule 2> %t/resultA.output |
| 4 | +// RUN: not %target-swift-frontend -module-name Logging -package-name My-Logging%Pkg %s -emit-module -emit-module-path %t/Logging.swiftmodule 2> %t/resultA.output |
6 | 5 | // RUN: %FileCheck %s -input-file %t/resultA.output -check-prefix CHECK-BAD
|
7 |
| -// CHECK-BAD: package name "My-Logging%Pkg" is not a valid identifier |
8 |
| -// CHECK-BAD: decl has a package access level but no -package-name was passed |
9 |
| -// CHECK-BAD: non-public decl has no formal access scope |
| 6 | +// CHECK-BAD: error: package name "My-Logging%Pkg" is not a valid identifier |
| 7 | +// CHECK-BAD: error: decl has a package access level but no -package-name was passed |
10 | 8 |
|
11 | 9 | // Package name should not be empty
|
12 |
| -// RUN: not --crash %target-swift-frontend -typecheck %s -package-name "" 2>&1 | %FileCheck %s -check-prefix CHECK-EMPTY |
13 |
| -// CHECK-EMPTY: package name "" is not a valid identifier |
14 |
| -// CHECK-EMPTY: decl has a package access level but no -package-name was passed |
15 |
| -// CHECK-EMPTY: non-public decl has no formal access scope |
| 10 | +// RUN: not %target-swift-frontend -typecheck %s -package-name "" 2>&1 | %FileCheck %s -check-prefix CHECK-EMPTY |
| 11 | +// CHECK-EMPTY: error: package name "" is not a valid identifier |
| 12 | +// CHECK-EMPTY: error: decl has a package access level but no -package-name was passed |
16 | 13 |
|
17 | 14 | // If package access level is used but no package-name is passed, it should error
|
18 |
| -// RUN: not --crash %target-swift-frontend -typecheck %s 2>&1 | %FileCheck %s -check-prefix CHECK-MISSING |
19 |
| -// CHECK-MISSING: decl has a package access level but no -package-name was passed |
20 |
| -// CHECK-MISSING: non-public decl has no formal access scope |
| 15 | +// RUN: not %target-swift-frontend -typecheck %s 2>&1 | %FileCheck %s -check-prefix CHECK-MISSING |
| 16 | +// CHECK-MISSING: error: decl has a package access level but no -package-name was passed |
21 | 17 |
|
22 | 18 | // Package name can be same as the module name
|
23 | 19 | // RUN: %target-swift-frontend -module-name Logging -package-name Logging %s -emit-module -emit-module-path %t/Logging.swiftmodule
|
|
0 commit comments