Files
swift-mirror/test/SIL/Parser/unmanaged.sil
Joe Groff c0a2994564 AST: Start printing function types with @convention instead of old attributes.
And update tests to match.

Swift SVN r27262
2015-04-13 22:51:34 +00:00

11 lines
301 B
Plaintext

// RUN: %target-sil-opt %s -verify
import Swift
sil @test : $@convention(thin) <U where U : AnyObject> (@inout Optional<U>) -> () {
bb0(%1 : $*Optional<U>):
%17 = load %1 : $*Optional<U>
%18 = ref_to_unmanaged %17 : $Optional<U> to $@sil_unmanaged Optional<U>
%6 = tuple ()
return %6 : $()
}