clang/test/DebugInfo/CXX/dependent-template-type-scope.cpp
raw| 1 | // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -debug-info-kind=standalone -o - %s | FileCheck %s |
| 2 | |
| 3 | template <typename T = int> |
| 4 | struct Y { |
| 5 | typedef int outside; |
| 6 | outside o; |
| 7 | }; |
| 8 | |
| 9 | Y<> y; |
| 10 | |
| 11 | // CHECK: ![[Y:.*]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Y<int>", {{.*}}identifier: "_ZTS1YIiE") |
| 12 | // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "outside", scope: ![[Y]], |