Files
swift-mirror/test/SILOptimizer/performance-annotations-noassert-stdlib.swift
2024-06-11 10:36:15 -04:00

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}}
}