1 // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -debug-info-kind=constructor %s -o - | FileCheck %s
3 // Test that clang doesn't crash while resolving temporary debug metadata of
4 // a record with collisions in the record's enum users.
6 // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
7 // CHECK-SAME: scope: [[SCOPE:![0-9]+]]
8 // CHECK-SAME: elements: [[ELEMENTS:![0-9]+]]
9 // CHECK: [[SCOPE]] = !DICompositeType(tag: DW_TAG_structure_type
10 // CHECK-SAME: name: "Struct1<Struct3>"
11 // CHECK: [[ELEMENTS]] = !{[[ELEMENT:![0-9]+]]}
12 // CHECK: [[ELEMENT]] = !DIEnumerator(name: "enumValue1"
14 template <typename
> struct Struct1
{
20 int i
= Struct1
<Struct3
>::enumValue1
;
24 int i
= Struct1
<Struct3
>::enumValue1
;