// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded -throws-as-traps | %FileCheck %s // REQUIRES: swift_in_compiler // REQUIRES: swift_feature_Embedded public func test() { withUnsafeTemporaryAllocation(byteCount: MemoryLayout.size, alignment: MemoryLayout.alignment) { p in p[0] = 42 } } // CHECK: swift_willThrow