Skip to content

Commit 636f3a7

Browse files
committed
Add a test file for combined SILGen + AddressLowering
1 parent 439b362 commit 636f3a7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: %target-swift-frontend -enable-sil-opaque-values -parse-as-library -emit-sil -Onone %s | %FileCheck %s
2+
3+
// CHECK-LABEL: sil hidden @$s19opaque_values_Onone16generic_identity1txx_tlF : $@convention(thin) <T> (@in_guaranteed T) -> @out T {
4+
// CHECK: bb0(%0 : $*T, %1 : $*T):
5+
// CHECK: debug_value %1 : $*T, let, name "t", argno 1
6+
// CHECK: copy_addr %1 to [initialization] %0 : $*T
7+
// CHECK-LABEL: } // end sil function '$s19opaque_values_Onone16generic_identity1txx_tlF'
8+
func generic_identity<T>(t: T) -> T {
9+
return t
10+
}

0 commit comments

Comments
 (0)