Files
swift-mirror/test/Interpreter/SDK/Cocoa_enums.swift
Graham Batty 83b4384fac Update test flags for linux failures and support.
Also removed the sdk 'feature' in favour of the more specific
objc_interop.

Swift SVN r24856
2015-01-30 21:31:48 +00:00

16 lines
466 B
Swift

// RUN: %target-run-simple-swift | FileCheck %s
// REQUIRES: objc_interop
import Foundation
let opts: NSBinarySearchingOptions = .FirstEqual | .InsertionIndex
// CHECK: true
println(opts & (.LastEqual | .InsertionIndex) == .InsertionIndex)
// CHECK: false
println((opts & .LastEqual) != nil)
// CHECK: {{^}}0 0 0{{$}}
println("\((nil as NSBinarySearchingOptions).rawValue) \(NSBinarySearchingOptions.allZeros.rawValue) \(NSBinarySearchingOptions(0).rawValue)")