]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/linetable-virtual-variadic.cpp
Vendor import of clang trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / linetable-virtual-variadic.cpp
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -debug-info-kind=line-directives-only %s -o - | FileCheck %s
3 // Crasher for PR22929.
4 class Base {
5   virtual void VariadicFunction(...);
6 };
7
8 class Derived : public virtual Base {
9   virtual void VariadicFunction(...);
10 };
11
12 void Derived::VariadicFunction(...) { }
13
14 // CHECK: define void @_ZN7Derived16VariadicFunctionEz({{.*}} !dbg ![[SP:[0-9]+]]
15 // CHECK: ret void, !dbg ![[LOC:[0-9]+]]
16 // CHECK: define void @_ZT{{.+}}N7Derived16VariadicFunctionEz({{.*}} !dbg ![[SP_I:[0-9]+]]
17 // CHECK: ret void, !dbg ![[LOC_I:[0-9]+]]
18 //
19 // CHECK: ![[SP]] = distinct !DISubprogram(name: "VariadicFunction"
20 // CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]])
21 // CHECK: ![[SP_I]] = distinct !DISubprogram(name: "VariadicFunction"
22 // CHECK: ![[LOC_I]] = !DILocation({{.*}}scope: ![[SP_I]])