mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
263 B
Swift
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())
|