| 1 |
// Sparc64 is used because AArch64 and X86_64 would both use musttail. |
| 2 |
// RUN: %clang_cc1 -triple sparc64-linux-gnu -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s |
| 3 |
// RUN: %clang_cc1 -triple sparc64-linux-gnu -emit-llvm -debug-info-kind=line-directives-only %s -o - | FileCheck %s |
| 4 |
// Crasher for PR22929. |
| 5 |
class Base { |
| 6 |
virtual void VariadicFunction(...); |
| 7 |
}; |
| 8 |
|
| 9 |
class Derived : public virtual Base { |
| 10 |
virtual void VariadicFunction(...); |
| 11 |
}; |
| 12 |
|
| 13 |
void Derived::VariadicFunction(...) { } |
| 14 |
|
| 15 |
// CHECK: define{{.*}} void @_ZN7Derived16VariadicFunctionEz({{.*}} !dbg ![[SP:[0-9]+]] |
| 16 |
// CHECK: ret void, !dbg ![[LOC:[0-9]+]] |
| 17 |
// CHECK: define{{.*}} void @_ZT{{.+}}N7Derived16VariadicFunctionEz({{.*}} !dbg ![[SP_I:[0-9]+]] |
| 18 |
// CHECK: ret void, !dbg ![[LOC_I:[0-9]+]] |
| 19 |
// |
| 20 |
// CHECK: ![[SP]] = distinct !DISubprogram(name: "VariadicFunction" |
| 21 |
// CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]]) |
| 22 |
// CHECK: ![[SP_I]] = distinct !DISubprogram(name: "VariadicFunction" |
| 23 |
// CHECK: ![[LOC_I]] = !DILocation({{.*}}scope: ![[SP_I]]) |