1// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -gline-tables-only %s -o - | FileCheck %s 2// 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// 20// CHECK: ![[CU]] = !MDCompileUnit({{.*}} subprograms: ![[SPs:[0-9]+]] 21// CHECK: ![[SPs]] = !{![[SP:[0-9]+]]} 22// CHECK: ![[SP]] = !MDSubprogram(name: "VariadicFunction",{{.*}} function: {{[^:]+}} @_ZN7Derived16VariadicFunctionEz 23// CHECK: ![[LOC]] = !MDLocation({{.*}}scope: ![[SP]]) 24