Debian Codegraph @

clang/test/DebugInfo/CXX/explicit-this.cpp

raw
1 // RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -std=c++2b %s -o - | FileCheck %s
2
3 struct Foo {
4 void Bar(this Foo&& self) {}
5 };
6
7 void fn() {
8 Foo{}.Bar();
9 }
10
11 // CHECK: distinct !DISubprogram(name: "Bar", {{.*}}, type: ![[BAR_TYPE:[0-9]+]], {{.*}}, declaration: ![[BAR_DECL:[0-9]+]], {{.*}}
12 // CHECK: ![[FOO:[0-9]+]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Foo"
13 // CHECK: ![[BAR_DECL]] = !DISubprogram(name: "Bar", {{.*}}, type: ![[BAR_TYPE]], {{.*}},
14 // CHECK: ![[BAR_TYPE]] = !DISubroutineType(types: ![[PARAMS:[0-9]+]])
15 // CHECK: ![[PARAMS]] = !{null, ![[SELF:[0-9]+]]}
16 // CHECK: ![[SELF]] = !DIDerivedType(tag: DW_TAG_rvalue_reference_type, baseType: ![[FOO]]