mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
236 B
Swift
10 lines
236 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)
|
|
}
|