1*67e74705SXin Li // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-linux-gnu %s -o - | FileCheck %s 2*67e74705SXin Li 3*67e74705SXin Li // Make sure that the union type has template parameters. 4*67e74705SXin Li 5*67e74705SXin Li namespace PR15637 { 6*67e74705SXin Li template <typename T> union Value { int a; }; g(float value)7*67e74705SXin Li void g(float value) { 8*67e74705SXin Li Value<float> tempValue; 9*67e74705SXin Li } 10*67e74705SXin Li Value<float> f; 11*67e74705SXin Li } 12*67e74705SXin Li 13*67e74705SXin Li // CHECK: !DICompositeType(tag: DW_TAG_union_type, name: "Value<float>", 14*67e74705SXin Li // CHECK-SAME: templateParams: [[TTPARAM:![0-9]+]] 15*67e74705SXin Li // CHECK-SAME: identifier: "_ZTSN7PR156375ValueIfEE" 16*67e74705SXin Li // CHECK: [[TTPARAM]] = !{[[PARAMS:.*]]} 17*67e74705SXin Li // CHECK: [[PARAMS]] = !DITemplateTypeParameter(name: "T" 18