|
43 | 43 | // RUN: -experimental-skip-non-exportable-decls \
|
44 | 44 | // RUN: -experimental-allow-non-resilient-access \
|
45 | 45 | // RUN: -emit-module -emit-module-path %t/Utils.swiftmodule \
|
46 |
| -// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK-DIAG-EXP |
47 |
| -// CHECK-DIAG-EXP: warning: ignoring -experimental-skip-non-exportable-decls (overriden by -experimental-allow-non-resilient-access) |
| 46 | +// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK-DIAG-1 |
| 47 | +// CHECK-DIAG-1: warning: ignoring -experimental-skip-non-exportable-decls (overriden by -experimental-allow-non-resilient-access) |
| 48 | +// RUN: llvm-bcanalyzer --dump %t/Utils.swiftmodule | %FileCheck %s --check-prefix=CHECK-ON |
| 49 | + |
| 50 | +/// Override -experimental-skip-non-inlinable-function-bodies-without-types with warning |
| 51 | +// RUN: rm -rf %t/Utils.swiftmodule |
| 52 | +// RUN: %target-swift-frontend %t/Utils.swift \ |
| 53 | +// RUN: -module-name Utils -swift-version 5 -I %t \ |
| 54 | +// RUN: -package-name mypkg \ |
| 55 | +// RUN: -enable-library-evolution \ |
| 56 | +// RUN: -experimental-skip-non-inlinable-function-bodies-without-types \ |
| 57 | +// RUN: -experimental-allow-non-resilient-access \ |
| 58 | +// RUN: -emit-module -emit-module-path %t/Utils.swiftmodule \ |
| 59 | +// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK-DIAG-2 |
| 60 | +// CHECK-DIAG-2: warning: ignoring -experimental-skip-non-inlinable-function-bodies-without-types (overriden by -experimental-allow-non-resilient-access) |
| 61 | +// RUN: llvm-bcanalyzer --dump %t/Utils.swiftmodule | %FileCheck %s --check-prefix=CHECK-ON |
| 62 | + |
| 63 | +/// Override -experimental-skip-non-inlinable-function-bodies with warning |
| 64 | +// RUN: rm -rf %t/Utils.swiftmodule |
| 65 | +// RUN: %target-swift-frontend %t/Utils.swift \ |
| 66 | +// RUN: -module-name Utils -swift-version 5 -I %t \ |
| 67 | +// RUN: -package-name mypkg \ |
| 68 | +// RUN: -enable-library-evolution \ |
| 69 | +// RUN: -experimental-skip-non-inlinable-function-bodies \ |
| 70 | +// RUN: -experimental-allow-non-resilient-access \ |
| 71 | +// RUN: -emit-module -emit-module-path %t/Utils.swiftmodule \ |
| 72 | +// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK-DIAG-3 |
| 73 | +// CHECK-DIAG-3: warning: ignoring -experimental-skip-non-inlinable-function-bodies (overriden by -experimental-allow-non-resilient-access) |
| 74 | +// RUN: llvm-bcanalyzer --dump %t/Utils.swiftmodule | %FileCheck %s --check-prefix=CHECK-ON |
| 75 | + |
| 76 | +/// Override -experimental-skip-all-function-bodies with warning |
| 77 | +// RUN: rm -rf %t/Utils.swiftmodule |
| 78 | +// RUN: %target-swift-frontend %t/Utils.swift \ |
| 79 | +// RUN: -module-name Utils -swift-version 5 -I %t \ |
| 80 | +// RUN: -package-name mypkg \ |
| 81 | +// RUN: -enable-library-evolution \ |
| 82 | +// RUN: -experimental-skip-all-function-bodies \ |
| 83 | +// RUN: -experimental-allow-non-resilient-access \ |
| 84 | +// RUN: -emit-module -emit-module-path %t/Utils.swiftmodule \ |
| 85 | +// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK-DIAG-4 |
| 86 | +// CHECK-DIAG-4: warning: ignoring -experimental-skip-all-function-bodies (overriden by -experimental-allow-non-resilient-access) |
| 87 | +// RUN: llvm-bcanalyzer --dump %t/Utils.swiftmodule | %FileCheck %s --check-prefix=CHECK-ON |
| 88 | + |
| 89 | +/// Override -experimental-lazy-typecheck with warning |
| 90 | +// RUN: rm -rf %t/Utils.swiftmodule |
| 91 | +// RUN: %target-swift-frontend %t/Utils.swift \ |
| 92 | +// RUN: -module-name Utils -swift-version 5 -I %t \ |
| 93 | +// RUN: -package-name mypkg \ |
| 94 | +// RUN: -enable-library-evolution \ |
| 95 | +// RUN: -experimental-lazy-typecheck \ |
| 96 | +// RUN: -experimental-allow-non-resilient-access \ |
| 97 | +// RUN: -emit-module -emit-module-path %t/Utils.swiftmodule \ |
| 98 | +// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK-DIAG-5 |
| 99 | +// CHECK-DIAG-5: warning: ignoring -experimental-lazy-typecheck (overriden by -experimental-allow-non-resilient-access) |
| 100 | +// RUN: llvm-bcanalyzer --dump %t/Utils.swiftmodule | %FileCheck %s --check-prefix=CHECK-ON |
| 101 | + |
| 102 | +/// Override -tbd-is-installapi with warning |
| 103 | +// RUN: rm -rf %t/Utils.swiftmodule |
| 104 | +// RUN: %target-swift-frontend %t/Utils.swift \ |
| 105 | +// RUN: -module-name Utils -swift-version 5 -I %t \ |
| 106 | +// RUN: -package-name mypkg \ |
| 107 | +// RUN: -enable-library-evolution \ |
| 108 | +// RUN: -tbd-is-installapi \ |
| 109 | +// RUN: -experimental-allow-non-resilient-access \ |
| 110 | +// RUN: -emit-module -emit-module-path %t/Utils.swiftmodule \ |
| 111 | +// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK-DIAG-TBD |
| 112 | +// CHECK-DIAG-TBD: warning: ignoring -tbd-is-installapi (overriden by -experimental-allow-non-resilient-access) |
48 | 113 | // RUN: llvm-bcanalyzer --dump %t/Utils.swiftmodule | %FileCheck %s --check-prefix=CHECK-ON
|
49 | 114 |
|
50 | 115 | /// Build Utils interface files.
|
|
0 commit comments