[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / linetable-virtual-variadic.cpp
blob9d7cd3e71cc29183a6c90aa13ce337ec07db8fa1
1 // Sparc64 is used because AArch64 and X86_64 would both use musttail.
2 // RUN: %clang_cc1 -triple sparc64-linux-gnu -emit-llvm -debug-info-kind=line-tables-only %s -o - | FileCheck %s
3 // RUN: %clang_cc1 -triple sparc64-linux-gnu -emit-llvm -debug-info-kind=line-directives-only %s -o - | FileCheck %s
4 // Crasher for PR22929.
5 class Base {
6 virtual void VariadicFunction(...);
7 };
9 class Derived : public virtual Base {
10 virtual void VariadicFunction(...);
13 void Derived::VariadicFunction(...) { }
15 // CHECK: define{{.*}} void @_ZN7Derived16VariadicFunctionEz({{.*}} !dbg ![[SP:[0-9]+]]
16 // CHECK: ret void, !dbg ![[LOC:[0-9]+]]
17 // CHECK: define{{.*}} void @_ZT{{.+}}N7Derived16VariadicFunctionEz({{.*}} !dbg ![[SP_I:[0-9]+]]
18 // CHECK: ret void, !dbg ![[LOC_I:[0-9]+]]
20 // CHECK: ![[SP]] = distinct !DISubprogram(name: "VariadicFunction"
21 // CHECK: ![[LOC]] = !DILocation({{.*}}scope: ![[SP]])
22 // CHECK: ![[SP_I]] = distinct !DISubprogram(name: "VariadicFunction"
23 // CHECK: ![[LOC_I]] = !DILocation({{.*}}scope: ![[SP_I]])