Files
swift-mirror/test/DebugInfo/dbgvalue-insertpt.swift
2023-06-16 15:05:44 -04:00

11 lines
471 B
Swift

// RUN: %target-swift-frontend -g -emit-ir -Xllvm '-sil-inline-never-functions=next' %s | %FileCheck %s
// FIXME: This test should be testing a non-shadow-copied value instead.
for i in 0 ..< 3 {
// CHECK: %[[ALLOCA:[0-9]+]] = alloca %TSiSg
// CHECK: %i.debug = alloca i{{32|64}}
// CHECK-NEXT: call void @llvm.dbg.declare(metadata ptr %i.debug,
// CHECK-SAME: metadata ![[I:[0-9]+]],
// CHECK: ![[I]] = !DILocalVariable(name: "i",
}