2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-linux-gnu %s -o - | FileCheck %s
|
2013-04-03 06:59:11 +08:00
|
|
|
|
|
|
|
// Make sure that the union type has template parameters.
|
|
|
|
|
|
|
|
namespace PR15637 {
|
|
|
|
template <typename T> union Value { int a; };
|
|
|
|
void g(float value) {
|
|
|
|
Value<float> tempValue;
|
|
|
|
}
|
|
|
|
Value<float> f;
|
|
|
|
}
|
|
|
|
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DICompositeType(tag: DW_TAG_union_type, name: "Value<float>",
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: templateParams: [[TTPARAM:![0-9]+]]
|
|
|
|
// CHECK-SAME: identifier: "_ZTSN7PR156375ValueIfEE"
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK: [[TTPARAM]] = !{[[PARAMS:.*]]}
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: [[PARAMS]] = !DITemplateTypeParameter(name: "T"
|