mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
241 B
Swift
10 lines
241 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
|
|
func markUsed<T>(_ t: T) {}
|
|
|
|
public func f(_ i : Int?)
|
|
{
|
|
// CHECK: !DILocalVariable(name: "gv", {{.*}}line: [[@LINE+1]]
|
|
guard var gv = i else { return }
|
|
markUsed(gv)
|
|
}
|