|
13 | 13 | /// Contains tests for existential, optional, and other casts that box/unbox values.
|
14 | 14 | ///
|
15 | 15 | // -----------------------------------------------------------------------------
|
16 |
| -// RUN: %empty-directory(%t) |
17 |
| -// |
18 |
| -// RUN: %gyb %s -o %t/BoxingCasts.swift |
19 |
| -// |
20 |
| -// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.Onone.out |
21 |
| -// RUN: %target-codesign %t/a.swift5.Onone.out |
22 |
| -// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.Onone.out |
23 |
| -// |
24 |
| -// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.O.out |
25 |
| -// RUN: %target-codesign %t/a.swift5.O.out |
26 |
| -// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.O.out |
27 |
| -// |
28 |
| -// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.Onone.out |
29 |
| -// RUN: %target-codesign %t/a.swift4.Onone.out |
30 |
| -// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.Onone.out |
31 |
| -// |
32 |
| -// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.O.out |
33 |
| -// RUN: %target-codesign %t/a.swift4.O.out |
34 |
| -// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.O.out |
35 |
| -// |
36 |
| -// Note: The RUN directives above override the default test optimizations. |
37 |
| -// This test is deliberately run both ways: |
38 |
| -// * optimized to verify compiler cast optimizations, and |
39 |
| -// * non-optimized to verify the runtime methods used for non-optimized casts. |
40 |
| -// |
41 |
| -// REQUIRES: executable_test |
42 | 16 |
|
43 | 17 | import StdlibUnittest
|
44 | 18 | #if _runtime(_ObjC)
|
|
0 commit comments