Files
swift-mirror/validation-test/Evolution/Inputs/function_change_transparent_body.swift
Slava Pestov 59a2e2aff8 Library evolution tests: add test for changing body of a transparent function
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.
2016-01-22 16:44:33 -08:00

10 lines
103 B
Swift

@_transparent public func getBuildVersion() -> Int {
#if BEFORE
return 0
#else
return 1
#endif
}