2013-04-03 06:59:11 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -g -triple x86_64-linux-gnu %s -o - | FileCheck %s
|
|
|
|
|
|
|
|
// 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-03-04 01:25:55 +08:00
|
|
|
// CHECK: !MDCompositeType(tag: DW_TAG_union_type, name: "Value<float>",
|
|
|
|
// CHECK-SAME: templateParams: [[TTPARAM:![0-9]+]]
|
|
|
|
// CHECK-SAME: identifier: "_ZTSN7PR156375ValueIfEE"
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK: [[TTPARAM]] = !{[[PARAMS:.*]]}
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK: [[PARAMS]] = !MDTemplateTypeParameter(name: "T"
|