Files
swift-mirror/test/DebugInfo/BoundGenericStruct.swift
Adrian Prantl 3bc9d43d12 Store the type parameters of bound generics in the debug info.
This is needed to anchor any typedefs that appear in bound generic parameters so
they can be resolved in the typeref-based part of the debugger without needing
to query the Swift module.
2020-04-20 14:45:58 -07:00

13 lines
477 B
Swift

// RUN: %target-swift-frontend %s -O -emit-ir -g -o - | %FileCheck %s
public struct S<T> {
let t : T
}
public let s = S<Int>(t: 0)
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "S",
// CHECK-SAME: templateParams: ![[PARAMS:[0-9]+]], identifier:
// CHECK: ![[PARAMS]] = !{![[INTPARAM:[0-9]+]]}
// CHECK: ![[INTPARAM]] = !DITemplateTypeParameter(type: ![[INT:[0-9]+]])
// CHECK: ![[INT]] = !DICompositeType(tag: DW_TAG_structure_type, name: "Int",