Clang Project

clang_source_code/test/CodeGenCXX/debug-info-windows-dtor.cpp
1// RUN: %clang_cc1 -triple i386-unknown-windows-msvc -std=c++11 -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
2// RUN: %clang_cc1 -triple i386-unknown-windows-msvc -std=c++11 -emit-llvm -debug-info-kind=line-directives-only %s -o - | FileCheck %s
3
4struct A {
5  virtual ~A() {}
6};
7
8struct B {
9  virtual ~B() {}
10};
11
12template<typename T>
13struct AB: A, B {
14};
15
16template struct AB<int>;
17
18// CHECK: define {{.*}}@"??_E?$AB@H@@W3AEPAXI@Z"({{.*}} !dbg [[THUNK_VEC_DEL_DTOR:![0-9]*]]
19// CHECK: call {{.*}}@"??_G?$AB@H@@UAEPAXI@Z"({{.*}}) #{{[0-9]*}}, !dbg [[THUNK_LOC:![0-9]*]]
20// CHECK: define
21
22// CHECK: [[THUNK_VEC_DEL_DTOR]] = distinct !DISubprogram
23// CHECK: [[THUNK_LOC]] = !DILocation(line: 0, scope: [[THUNK_VEC_DEL_DTOR]])
24