1 // RUN: %clang_cc1 -triple x86_64-unk-unk -o - -emit-llvm -debug-info-kind=standalone -gtemplate-alias %s -gsimple-template-names=simple \ 2 // RUN: | FileCheck %s 3 4 //// Check that -gtemplate-alias falls back to DW_TAG_typedef emission 5 //// for instantiation dependent type aliases. 6 7 template <int> 8 using A = int; 9 10 template<int I> 11 struct S { 12 using AA = A<I>; 13 AA aa; 14 }; 15 16 S<0> s; 17 18 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "aa", scope: ![[#]], file: ![[#]], line: [[#]], baseType: ![[AA:[0-9]+]], size: 32) 19 // CHECK: [[AA]] = !DIDerivedType(tag: DW_TAG_typedef, name: "AA", file: ![[#]], line: [[#]], baseType: ![[A:[0-9]+]]) 20 // CHECK: [[A]] = !DIDerivedType(tag: DW_TAG_typedef, name: "A<I>", file: ![[#]], line: [[#]], baseType: ![[int:[0-9]+]]) 21 // CHECK: [[int]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 22