mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
14 lines
346 B
Swift
14 lines
346 B
Swift
// 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]
|
|
}
|
|
|