Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
      2 // Crasher for PR22929.
      3 class Base {
      4   virtual void VariadicFunction(...);
      5 };
      6 
      7 class Derived : public virtual Base {
      8   virtual void VariadicFunction(...);
      9 };
     10 
     11 void Derived::VariadicFunction(...) { }
     12 
     13 // CHECK: define void @_ZN7Derived16VariadicFunctionEz({{.*}} !dbg ![[SP:[0-9]+]]
     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: ![[SP]] = distinct !DISubprogram(name: "VariadicFunction"
     19 // CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]])
     20