Files
swift-mirror/test/SIL/Serialization/effectsattr.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

30 lines
519 B
Plaintext

// RUN: %target-sil-opt -verify %s -o - | FileCheck %s
sil_stage canonical
import Builtin
import Swift
import SwiftShims
//CHECK: [readonly] @function1
sil [readonly] @function1 : $@convention(thin) () -> () {
bb0:
%0 = tuple ()
return %0 : $()
}
//CHECK: [readnone] @function2
sil [readnone] @function2 : $@convention(thin) () -> () {
bb0:
%0 = tuple ()
return %0 : $()
}
//CHECK: [readwrite] @function3
sil [readwrite] @function3 : $@convention(thin) () -> () {
bb0:
%0 = tuple ()
return %0 : $()
}