2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -debug-info-kind=line-tables-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(...) { }
|
|
|
|
|
2015-11-06 06:04:14 +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]+]]
|
|
|
|
// CHECK-LABEL: define void @_ZT{{.+}}N7Derived16VariadicFunctionEz(
|
|
|
|
// CHECK: ret void, !dbg ![[LOC:[0-9]+]]
|
|
|
|
//
|
|
|
|
// CHECK: !llvm.dbg.cu = !{![[CU:[0-9]+]]}
|
|
|
|
//
|
2015-07-01 02:32:50 +08:00
|
|
|
// CHECK: ![[CU]] = distinct !DICompileUnit({{.*}} subprograms: ![[SPs:[0-9]+]]
|
2015-11-06 06:04:14 +08:00
|
|
|
// CHECK: ![[SPs]] = !{![[SP]]}
|
|
|
|
// CHECK: ![[SP]] = distinct !DISubprogram(name: "VariadicFunction"
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]])
|