Files
swift-mirror/test/SILOptimizer/performance-annotations-crash.swift
2022-05-27 19:03:55 +02:00

10 lines
263 B
Swift

// RUN: %target-swift-frontend -experimental-performance-annotations -experimental-skip-non-inlinable-function-bodies-without-types -emit-module %s -o /dev/null
// Don't crash when emitting a module
@_noAllocation
func foo() -> Int {
return 42
}
print(foo())