Files
swift-mirror/test/SIL/Serialization/effectsattr.sil
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

36 lines
648 B
Plaintext

// RUN: %target-sil-opt %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 : $()
}
//CHECK: [releasenone] @function4
sil [releasenone] @function4 : $@convention(thin) () -> () {
bb0:
%0 = tuple ()
return %0 : $()
}