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 f913006 commit abfa0a3Copy full SHA for abfa0a3
test/SILOptimizer/performance-annotations.swift
@@ -139,6 +139,18 @@ func callFuncWithMetatypeArg() {
139
metatypeArg(Int.self, false) // expected-note {{called from here}}
140
}
141
142
+@_noAllocation
143
+func intConversion() {
144
+ let x = 42
145
+ _ = UInt(x)
146
+}
147
+
148
149
+func integerRange() {
150
+ for _ in 0 ..< 10 {
151
+ }
152
153
154
struct GenStruct<A> {
155
var a: A
156
0 commit comments