11// RUN: %empty-directory(%t)
2- // RUN: %target-swift-frontend -emit-silgen %s -parse-as-library -module-name Test | %FileCheck %s --check-prefixes=CHECK,CHECK-NO-SKIP
3- // RUN: %target-swift-frontend -emit-silgen %s -parse-as-library -module-name Test -experimental-skip-non-exportable-decls | %FileCheck %s --check-prefixes=CHECK,CHECK-SKIP
2+ // RUN: %target-swift-frontend -emit-silgen %s -parse-as-library -enable-library-evolution - module-name Test | %FileCheck %s --check-prefixes=CHECK,CHECK-NO-SKIP
3+ // RUN: %target-swift-frontend -emit-silgen %s -parse-as-library -enable-library-evolution - module-name Test -experimental-skip-non-exportable-decls | %FileCheck %s --check-prefixes=CHECK,CHECK-SKIP
44
55import Swift
66
@@ -15,7 +15,7 @@ import Swift
1515// CHECK-NO-SKIP: sil_global private @$s4Test15publicGlobalVar_Wz : $Builtin.Word
1616// CHECK-SKIP-NOT: s4Test15publicGlobalVar_Wz
1717
18- // CHECK: sil_global @$s4Test15publicGlobalVarSivp : $Int
18+ // CHECK: sil_global private @$s4Test15publicGlobalVarSivp : $Int
1919
2020// CHECK-NO-SKIP: sil private{{.*}} @$s4Test11privateFunc33_CFB3F9DC47F5EF9E1D08B58758351A08LLyyF : $@convention(thin) () -> () {
2121// CHECK-SKIP-NOT: s4Test11privateFunc33_CFB3F9DC47F5EF9E1D08B58758351A08LLyyF
@@ -46,7 +46,7 @@ internal func internalFuncWithNestedFunc() {
4646// CHECK-SKIP-NOT: s4Test022internalFuncWithNestedC0yyFyycyXEfU_
4747
4848// CHECK-NO-SKIP: sil private{{.*}} @$s4Test022internalFuncWithNestedC0yyFyycyXEfU_6$deferL_yyF : $@convention(thin) () -> () {
49- // CHECK-SKIP-NOT: @$s4Test022internalFuncWithNestedC0yyFyycyXEfU_6$deferL_yyF
49+ // CHECK-SKIP-NOT: sil{{.*}} @$s4Test022internalFuncWithNestedC0yyFyycyXEfU_6$deferL_yyF
5050
5151// CHECK: sil{{.*}} @$s4Test10publicFuncyyF : $@convention(thin) () -> () {
5252public func publicFunc( ) { }
@@ -73,8 +73,8 @@ internal var internalGlobalVar = 1
7373// CHECK-NO-SKIP: sil private [global_init_once_fn]{{.*}} @$s4Test15publicGlobalVar_WZ : $@convention(c) (Builtin.RawPointer) -> () {
7474// CHECK-SKIP-NOT: s4Test15publicGlobalVar_WZ
7575
76- // CHECK-NO-SKIP: sil [global_init]{{.*}} @$s4Test15publicGlobalVarSivau : $@convention(thin) () -> Builtin.RawPointer {
77- // CHECK-SKIP-NOT: s4Test15publicGlobalVarSivau
76+ // CHECK-NO-SKIP: sil hidden [global_init]{{.*}} @$s4Test15publicGlobalVarSivau : $@convention(thin) () -> Builtin.RawPointer {
77+ // CHECK-SKIP-NOT: sil{{.*}} s4Test15publicGlobalVarSivau
7878public var publicGlobalVar = 1
7979
8080// CHECK: sil [serialized]{{.*}} @$s4Test023inlinableFuncWithNestedC0yyF : $@convention(thin) () -> () {
@@ -94,9 +94,9 @@ public var publicGlobalVar = 1
9494
9595@propertyWrapper
9696public struct PublicWrapper < T> {
97- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test13PublicWrapperV12wrappedValuexvg : $@convention(method) <T> (@in_guaranteed PublicWrapper<T>) -> @out T {
98- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test13PublicWrapperV12wrappedValuexvs : $@convention(method) <T> (@in T, @inout PublicWrapper<T>) -> () {
99- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test13PublicWrapperV12wrappedValuexvM : $@yield_once @convention(method) <T> (@inout PublicWrapper<T>) -> @yields @inout T {
97+ // CHECK: sil{{.*}} @$s4Test13PublicWrapperV12wrappedValuexvg : $@convention(method) <T> (@in_guaranteed PublicWrapper<T>) -> @out T {
98+ // CHECK: sil{{.*}} @$s4Test13PublicWrapperV12wrappedValuexvs : $@convention(method) <T> (@in T, @inout PublicWrapper<T>) -> () {
99+ // CHECK: sil{{.*}} @$s4Test13PublicWrapperV12wrappedValuexvM : $@yield_once @convention(method) <T> (@inout PublicWrapper<T>) -> @yields @inout T {
100100 public var wrappedValue : T
101101
102102 // CHECK: sil{{.*}} @$s4Test13PublicWrapperV12wrappedValueACyxGx_tcfC : $@convention(method) <T> (@in T, @thin PublicWrapper<T>.Type) -> @out PublicWrapper<T> {
@@ -118,24 +118,24 @@ private class PrivateClass {
118118}
119119
120120public class PublicClass {
121- // CHECK-NO-SKIP: sil [transparent] {{.*}} @$s4Test11PublicClassC11internalVarSivpfi : $@convention(thin) () -> Int {
121+ // CHECK-NO-SKIP: sil{{.*}} @$s4Test11PublicClassC11internalVarSivpfi : $@convention(thin) () -> Int {
122122 // CHECK-SKIP-NOT: s4Test11PublicClassC11internalVarSivpfi
123- // CHECK-NO-SKIP: sil hidden [transparent] {{.*}} @$s4Test11PublicClassC11internalVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
123+ // CHECK-NO-SKIP: sil hidden{{.*}} @$s4Test11PublicClassC11internalVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
124124 // CHECK-SKIP-NOT: s4Test11PublicClassC11internalVarSivg
125- // CHECK-NO-SKIP: sil hidden [transparent] {{.*}} @$s4Test11PublicClassC11internalVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
125+ // CHECK-NO-SKIP: sil hidden{{.*}} @$s4Test11PublicClassC11internalVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
126126 // CHECK-SKIP-NOT: s4Test11PublicClassC11internalVarSivs
127- // CHECK-NO-SKIP: sil hidden [transparent] {{.*}} @$s4Test11PublicClassC11internalVarSivM : $@yield_once @convention(method) (@guaranteed PublicClass) -> @yields @inout Int {
127+ // CHECK-NO-SKIP: sil hidden{{.*}} @$s4Test11PublicClassC11internalVarSivM : $@yield_once @convention(method) (@guaranteed PublicClass) -> @yields @inout Int {
128128 // CHECK-SKIP-NOT: s4Test11PublicClassC11internalVarSivM
129129 var internalVar = 1
130130
131- // CHECK-NO-SKIP: sil [transparent] {{.*}} @$s4Test11PublicClassC9publicVarSivpfi : $@convention(thin) () -> Int {
131+ // CHECK-NO-SKIP: sil{{.*}} @$s4Test11PublicClassC9publicVarSivpfi : $@convention(thin) () -> Int {
132132 // CHECK-SKIP-NOT: s4Test11PublicClassC9publicVarSivpfi
133- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test11PublicClassC9publicVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
134- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test11PublicClassC9publicVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
135- // CHECK: sil [transparent] [serialized] {{.*}} @$s4Test11PublicClassC9publicVarSivM : $@yield_once @convention(method) (@guaranteed PublicClass) -> @yields @inout Int {
133+ // CHECK: sil{{.*}} @$s4Test11PublicClassC9publicVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
134+ // CHECK: sil{{.*}} @$s4Test11PublicClassC9publicVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
135+ // CHECK: sil{{.*}} @$s4Test11PublicClassC9publicVarSivM : $@yield_once @convention(method) (@guaranteed PublicClass) -> @yields @inout Int {
136136 public var publicVar = 1
137137
138- // CHECK-NO-SKIP: sil{{.*}} @$s4Test11PublicClassC16publicWrappedVarSivpfP : $@convention(thin) (Int) -> PublicWrapper<Int> {
138+ // CHECK-NO-SKIP: sil{{.*}} @$s4Test11PublicClassC16publicWrappedVarSivpfP : $@convention(thin) (Int) -> @out PublicWrapper<Int> {
139139 // CHECK-SKIP-NOT: s4Test11PublicClassC16publicWrappedVarSivpfP
140140 // CHECK: sil{{.*}} @$s4Test11PublicClassC16publicWrappedVarSivg : $@convention(method) (@guaranteed PublicClass) -> Int {
141141 // CHECK: sil{{.*}} @$s4Test11PublicClassC16publicWrappedVarSivs : $@convention(method) (Int, @guaranteed PublicClass) -> () {
@@ -174,7 +174,7 @@ extension PublicClass {
174174// CHECK-NO-SKIP-NEXT: }
175175// CHECK-SKIP-NOT: sil_vtable PrivateClass
176176
177- // CHECK-LABEL: sil_vtable [serialized] PublicClass {
177+ // CHECK-LABEL: sil_vtable PublicClass {
178178// CHECK-NO-SKIP-NEXT: #PublicClass.internalVar!getter
179179// CHECK-SKIP-NOT: #PublicClass.internalVar!getter
180180// CHECK-NO-SKIP-NEXT: #PublicClass.internalVar!setter
@@ -194,4 +194,4 @@ extension PublicClass {
194194// CHECK-NEXT: #PublicClass.deinit!deallocator
195195// CHECK-NEXT: }
196196
197- // CHECK: sil_property #PublicClass.publicVar ()
197+ // CHECK: sil_property #PublicClass.publicVar
0 commit comments