blob: a80f0ba9efc9d2da296d590037a8f1e2cde4194e [file] [log] [blame]
// RUN: %target-swift-frontend -O -emit-ir -parse-as-library -primary-file %s | %FileCheck %s
// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
// A dictionary lookup should not contain any trap. Nothing can go wrong
// from the user's perspective.
// CHECK-NOT: llvm.trap
public func testit(_ s: [Int : Int]) -> Int? {
return s[27]
}