2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 %s -triple %itanium_abi_triple -debug-info-kind=limited -S -emit-llvm -o - | FileCheck %s
|
2012-10-25 18:18:50 +08:00
|
|
|
|
|
|
|
struct A {
|
|
|
|
virtual void f();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct B {
|
|
|
|
virtual void f();
|
|
|
|
};
|
|
|
|
|
|
|
|
struct C : A, B {
|
|
|
|
virtual void f();
|
|
|
|
};
|
|
|
|
|
|
|
|
void C::f() { }
|
2016-11-10 07:10:44 +08:00
|
|
|
// CHECK: define {{.*}}void @_ZThn{{[48]}}_N1C1fEv
|
2016-11-10 05:43:51 +08:00
|
|
|
// CHECK-SAME: !dbg ![[SP:[0-9]+]]
|
|
|
|
// CHECK-NOT: {{ret }}
|
|
|
|
// CHECK: = load{{.*}} !dbg ![[DBG:[0-9]+]]
|
|
|
|
// CHECK-NOT: {{ret }}
|
|
|
|
// CHECK: ret void, !dbg ![[DBG]]
|
|
|
|
//
|
|
|
|
// CHECK: ![[SP]] = distinct !DISubprogram(linkageName: "_ZThn{{[48]}}_N1C1fEv"
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: line: 15
|
|
|
|
// CHECK-SAME: isDefinition: true
|
2016-11-10 05:43:51 +08:00
|
|
|
// CHECK-SAME: DIFlagArtificial
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: ){{$}}
|
2016-11-10 05:43:51 +08:00
|
|
|
//
|
|
|
|
// CHECK: ![[DBG]] = !DILocation(line: 0
|