mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
278 B
Swift
11 lines
278 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
import Foundation
|
|
|
|
let opts: NSBinarySearchingOptions = .FirstEqual | .InsertionIndex
|
|
|
|
// CHECK: true
|
|
println(opts & (.LastEqual | .InsertionIndex) == .InsertionIndex)
|
|
// CHECK: false
|
|
println((opts & .LastEqual).getLogicValue())
|