Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-linux-gnu %s -o - | FileCheck %s |
Eric Christopher | 5c7ee8b | 2013-04-02 22:59:11 +0000 | [diff] [blame] | 2 | |
| 3 | // Make sure that the union type has template parameters. |
| 4 | |
| 5 | namespace PR15637 { |
| 6 | template <typename T> union Value { int a; }; |
| 7 | void g(float value) { |
| 8 | Value<float> tempValue; |
| 9 | } |
| 10 | Value<float> f; |
| 11 | } |
| 12 | |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 13 | // CHECK: !DICompositeType(tag: DW_TAG_union_type, name: "Value<float>", |
Duncan P. N. Exon Smith | f04be1f | 2015-03-03 17:25:55 +0000 | [diff] [blame] | 14 | // CHECK-SAME: templateParams: [[TTPARAM:![0-9]+]] |
| 15 | // CHECK-SAME: identifier: "_ZTSN7PR156375ValueIfEE" |
Duncan P. N. Exon Smith | b3a6669 | 2014-12-15 19:10:08 +0000 | [diff] [blame] | 16 | // CHECK: [[TTPARAM]] = !{[[PARAMS:.*]]} |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 17 | // CHECK: [[PARAMS]] = !DITemplateTypeParameter(name: "T" |