blob: 4a0772a271ca7e1b374045d8866be373179f67e4 [file] [log] [blame]
Douglas Katzman3459ce22015-10-08 04:24:12 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
Duncan P. N. Exon Smitha7fd07f2015-03-17 01:19:01 +00002// Crasher for PR22929.
3class Base {
4 virtual void VariadicFunction(...);
5};
6
7class Derived : public virtual Base {
8 virtual void VariadicFunction(...);
9};
10
11void Derived::VariadicFunction(...) { }
12
13// CHECK-LABEL: define void @_ZN7Derived16VariadicFunctionEz(
14// CHECK: ret void, !dbg ![[LOC:[0-9]+]]
15// CHECK-LABEL: define void @_ZT{{.+}}N7Derived16VariadicFunctionEz(
16// CHECK: ret void, !dbg ![[LOC:[0-9]+]]
17//
18// CHECK: !llvm.dbg.cu = !{![[CU:[0-9]+]]}
19//
Adrian Prantl324c03f2015-06-30 18:32:50 +000020// CHECK: ![[CU]] = distinct !DICompileUnit({{.*}} subprograms: ![[SPs:[0-9]+]]
Duncan P. N. Exon Smitha7fd07f2015-03-17 01:19:01 +000021// CHECK: ![[SPs]] = !{![[SP:[0-9]+]]}
Duncan P. N. Exon Smith8cd9d7a2015-08-26 22:50:48 +000022// CHECK: ![[SP]] = distinct !DISubprogram(name: "VariadicFunction",{{.*}} function: {{[^:]+}} @_ZN7Derived16VariadicFunctionEz
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000023// CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]])