mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I'm going to add some more tests related to @_transparent shortly, and it is important to verify that bodies of @_transparent functions are serialized (at least in single-frontend mode, for now). I realize this test is probably too specific, since in the future we may sometimes choose not to inline @_transparent functions into their callers, even if a serialized body is available; but this will suffice for now.
10 lines
103 B
Swift
10 lines
103 B
Swift
|
|
@_transparent public func getBuildVersion() -> Int {
|
|
#if BEFORE
|
|
return 0
|
|
#else
|
|
return 1
|
|
#endif
|
|
}
|
|
|