|
1 | 1 | // RUN: %empty-directory(%t)
|
2 | 2 | // RUN: echo 'client()' >%t/main.swift
|
3 |
| -// RUN: %target-build-swift-dylib(%t/libAttrImplFP.%target-dylib-extension) -module-name AttrImplFP -emit-module -emit-module-path %t/AttrImplFP.swiftmodule %S/attr_implements_fp.swift |
| 3 | +// RUN: %target-build-swift-dylib(%t/libAttrImplFP.%target-dylib-extension) -module-name AttrImplFP -emit-module -emit-module-path %t/AttrImplFP.swiftmodule %S/attr_implements_fp.swift -Xfrontend -enable-operator-designated-types -Xfrontend -solver-enable-operator-designated-types |
4 | 4 | // RUN: %target-build-swift -I %t -o %t/a.out %s %t/main.swift -L %t -Xlinker -rpath -Xlinker %t -lAttrImplFP
|
5 | 5 | // RUN: %target-codesign %t/a.out
|
6 | 6 | // RUN: %target-codesign %t/libAttrImplFP.%target-dylib-extension
|
|
13 | 13 | import AttrImplFP
|
14 | 14 |
|
15 | 15 | public func client() {
|
16 |
| - precondition(compare_Comparables(Fauxt.one, Fauxt.two)) |
17 |
| - precondition(comparedAsComparablesCount == 1) |
18 |
| - // CHECK: compared as Comparables |
19 |
| - precondition(compare_Comparables(Fauxt.one, Fauxt.nan)) |
20 |
| - precondition(comparedAsComparablesCount == 2) |
21 |
| - // CHECK: compared as Comparables |
22 |
| - precondition(!compare_Comparables(Fauxt.nan, Fauxt.one)) |
23 |
| - precondition(comparedAsComparablesCount == 3) |
24 |
| - // CHECK: compared as Comparables |
| 16 | + precondition(compare_Cauxmparables(Fauxt.one, Fauxt.two)) |
| 17 | + precondition(comparedAsCauxmparablesCount == 1) |
| 18 | + // CHECK: compared as Cauxmparables |
| 19 | + precondition(compare_Cauxmparables(Fauxt.one, Fauxt.nan)) |
| 20 | + precondition(comparedAsCauxmparablesCount == 2) |
| 21 | + // CHECK: compared as Cauxmparables |
| 22 | + precondition(!compare_Cauxmparables(Fauxt.nan, Fauxt.one)) |
| 23 | + precondition(comparedAsCauxmparablesCount == 3) |
| 24 | + // CHECK: compared as Cauxmparables |
25 | 25 |
|
26 | 26 | precondition(compare_Fauxts(Fauxt.one, Fauxt.two))
|
27 | 27 | precondition(comparedAsFauxtsCount == 1)
|
|
0 commit comments