mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
322ce5a1ab
Fixes rdar://129298104.
9 lines
367 B
Swift
9 lines
367 B
Swift
// RUN: %target-swift-frontend -parse-as-library -disable-availability-checking -import-objc-header %S/Inputs/perf-annotations.h -emit-sil %s -o /dev/null -verify
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
|
|
|
|
@_noAllocation
|
|
func createEmptyArray() {
|
|
_ = [Int]() // expected-error {{ending the lifetime of a value of type}}
|
|
} |