Skip to content

Commit 80a1c08

Browse files
committed
Use designated types in test of @_implements, to ensure we maintain the expected behavior.
1 parent 35f6428 commit 80a1c08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/attr/attr_implements_fp.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: echo 'main()' >%t/main.swift
3-
// RUN: %target-swiftc_driver -o %t/a.out %s %t/main.swift
3+
// RUN: %target-swiftc_driver -o %t/a.out %s %t/main.swift -Xfrontend -enable-operator-designated-types -Xfrontend -solver-enable-operator-designated-types
44
// RUN: %target-codesign %t/a.out
55
// RUN: %target-run %t/a.out | %FileCheck %s
66
// REQUIRES: executable_test
@@ -13,7 +13,7 @@
1313
public var comparedAsCauxmparablesCount : Int = 0
1414
public var comparedAsFauxtsCount : Int = 0
1515

16-
infix operator .< : ComparisonPrecedence
16+
infix operator .< : ComparisonPrecedence, BinaryFauxtingPoint, Cauxmparable
1717

1818
public protocol Cauxmparable {
1919
static func .< (lhs: Self, rhs: Self) -> Bool

test/attr/attr_implements_serial.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// 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
44
// RUN: %target-build-swift -I %t -o %t/a.out %s %t/main.swift -L %t -Xlinker -rpath -Xlinker %t -lAttrImplFP
55
// RUN: %target-codesign %t/a.out
66
// RUN: %target-codesign %t/libAttrImplFP.%target-dylib-extension

0 commit comments

Comments
 (0)