blob: 3f376a6e3b20d10d31e85ed26489d2f2990aa746 [file] [log] [blame]
// RUN: %target-run-simple-swift | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: objc_interop
import Foundation
let opts: NSBinarySearchingOptions = [.firstEqual, .insertionIndex]
// CHECK: true
print(opts.intersection([.lastEqual, .insertionIndex]) == .insertionIndex)
// CHECK: false
print(!opts.intersection(.lastEqual).isEmpty)
// CHECK: {{^}}0 0{{$}}
print("\(([] as NSBinarySearchingOptions).rawValue) \(NSBinarySearchingOptions(rawValue: 0).rawValue)")