mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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}}
|
|
} |