annotate clang/test/CodeGenCXX/debug-info-method.cpp @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -std=c++11 -debug-info-kind=limited %s -o - | FileCheck %s
anatofuz
parents:
diff changeset
2 // CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type
anatofuz
parents:
diff changeset
3 // CHECK: ![[A:[0-9]+]] = distinct !DICompositeType(tag: DW_TAG_class_type, name: "A",{{.*}} identifier: "_ZTS1A")
anatofuz
parents:
diff changeset
4 // CHECK: !DISubprogram(name: "foo", linkageName: "_ZN1A3fooEiS_3$_0"
anatofuz
parents:
diff changeset
5 // CHECK-SAME: DIFlagProtected
anatofuz
parents:
diff changeset
6 // CHECK: ![[THISTYPE:[0-9]+]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: ![[A]]
anatofuz
parents:
diff changeset
7 // CHECK-SAME: DIFlagArtificial
anatofuz
parents:
diff changeset
8 // CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: ![[MEMFUNTYPE:[0-9]+]]
anatofuz
parents:
diff changeset
9 // CHECK: ![[MEMFUNTYPE]] = !DISubroutineType({{(cc: DW_CC_BORLAND_thiscall, )?}}types: ![[MEMFUNARGS:[0-9]+]])
anatofuz
parents:
diff changeset
10 // CHECK: ![[MEMFUNARGS]] = {{.*}}, ![[THISTYPE]],
anatofuz
parents:
diff changeset
11 // CHECK: !DILocalVariable(name: "this", arg: 1
anatofuz
parents:
diff changeset
12 // CHECK: !DILocalVariable(arg: 2
anatofuz
parents:
diff changeset
13 // CHECK: !DILocalVariable(arg: 3
anatofuz
parents:
diff changeset
14 // CHECK: !DILocalVariable(arg: 4
anatofuz
parents:
diff changeset
15 union {
anatofuz
parents:
diff changeset
16 int a;
anatofuz
parents:
diff changeset
17 float b;
anatofuz
parents:
diff changeset
18 } u;
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 class A {
anatofuz
parents:
diff changeset
21 protected:
anatofuz
parents:
diff changeset
22 void foo(int, A, decltype(u));
anatofuz
parents:
diff changeset
23 void bar();
anatofuz
parents:
diff changeset
24 };
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 void A::foo(int, A, decltype(u)) {
anatofuz
parents:
diff changeset
27 }
anatofuz
parents:
diff changeset
28
anatofuz
parents:
diff changeset
29 A a;
anatofuz
parents:
diff changeset
30
anatofuz
parents:
diff changeset
31 int A::*x = 0;
anatofuz
parents:
diff changeset
32 int (A::*y)(int) = 0;
anatofuz
parents:
diff changeset
33
anatofuz
parents:
diff changeset
34 void A::bar() { foo(0, *this, u); }