We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 439b362 commit 636f3a7Copy full SHA for 636f3a7
test/SILOptimizer/opaque_values_Onone.swift
@@ -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