Debian Codegraph @

clang/test/DebugInfo/CXX/dependent-template-alias.cpp

raw
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 template <int>
5 using A = int;
6
7 template<int I>
8 struct S {
9 using AA = A<I>;
10 AA aa;
11 };
12
13 S<0> s;
14
15 // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "aa", scope: ![[#]], file: ![[#]], line: [[#]], baseType: ![[AA:[0-9]+]], size: 32)
16 // CHECK: [[AA]] = !DIDerivedType(tag: DW_TAG_typedef, name: "AA", scope: ![[#]], file: ![[#]], line: [[#]], baseType: ![[A:[0-9]+]])
17 // CHECK: [[A]] = !DIDerivedType(tag: DW_TAG_template_alias, name: "A", file: ![[#]], line: [[#]], baseType: ![[int:[0-9]+]], extraData: ![[#]])
18 // CHECK: [[int]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)