2019-09-07 06:55:26 +08:00
|
|
|
// Sparc64 is used because AArch64 and X86_64 would both use musttail.
|
|
|
|
// RUN: %clang_cc1 -triple sparc64-linux-gnu -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -triple sparc64-linux-gnu -emit-llvm -debug-info-kind=line-directives-only %s -o - | FileCheck %s
|
2015-03-17 09:19:01 +08:00
|
|
|
// Crasher for PR22929.
|
|
|
|
class Base {
|
|
|
|
virtual void VariadicFunction(...);
|
|
|
|
};
|
|
|
|
|
|
|
|
class Derived : public virtual Base {
|
|
|
|
virtual void VariadicFunction(...);
|
|
|
|
};
|
|
|
|
|
|
|
|
void Derived::VariadicFunction(...) { }
|
|
|
|
|
2020-02-04 02:09:39 +08:00
|
|
|
// CHECK: define void @_ZN7Derived16VariadicFunctionEz({{.*}} !dbg ![[SP:[0-9]+]]
|
2015-03-17 09:19:01 +08:00
|
|
|
// CHECK: ret void, !dbg ![[LOC:[0-9]+]]
|
2020-02-04 02:09:39 +08:00
|
|
|
// CHECK: define void @_ZT{{.+}}N7Derived16VariadicFunctionEz({{.*}} !dbg ![[SP_I:[0-9]+]]
|
2017-05-10 03:47:41 +08:00
|
|
|
// CHECK: ret void, !dbg ![[LOC_I:[0-9]+]]
|
2015-03-17 09:19:01 +08:00
|
|
|
//
|
2015-11-06 06:04:14 +08:00
|
|
|
// CHECK: ![[SP]] = distinct !DISubprogram(name: "VariadicFunction"
|
2018-09-25 02:24:18 +08:00
|
|
|
// CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]])
|
2017-05-10 03:47:41 +08:00
|
|
|
// CHECK: ![[SP_I]] = distinct !DISubprogram(name: "VariadicFunction"
|
2018-09-25 02:24:18 +08:00
|
|
|
// CHECK: ![[LOC_I]] = !DILocation({{.*}}scope: ![[SP_I]])
|