2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -std=c++11 -debug-info-kind=limited %s -o - | FileCheck %s
|
2016-09-13 09:13:19 +08:00
|
|
|
// CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type
|
2016-04-24 05:08:27 +08:00
|
|
|
// CHECK: ![[A:[0-9]+]] = distinct !DICompositeType(tag: DW_TAG_class_type, name: "A",{{.*}} identifier: "_ZTS1A")
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DISubprogram(name: "foo", linkageName: "_ZN1A3fooEiS_3$_0"
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: DIFlagProtected
|
2016-04-24 05:08:27 +08:00
|
|
|
// CHECK: ![[THISTYPE:[0-9]+]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: ![[A]]
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: DIFlagArtificial
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: ![[MEMFUNTYPE:[0-9]+]]
|
2016-06-09 18:06:13 +08:00
|
|
|
// CHECK: ![[MEMFUNTYPE]] = !DISubroutineType({{(cc: DW_CC_BORLAND_thiscall, )?}}types: ![[MEMFUNARGS:[0-9]+]])
|
2014-12-16 03:10:08 +08:00
|
|
|
// CHECK: ![[MEMFUNARGS]] = {{.*}}, ![[THISTYPE]],
|
2015-08-01 02:59:37 +08:00
|
|
|
// CHECK: !DILocalVariable(name: "this", arg: 1
|
|
|
|
// CHECK: !DILocalVariable(arg: 2
|
|
|
|
// CHECK: !DILocalVariable(arg: 3
|
|
|
|
// CHECK: !DILocalVariable(arg: 4
|
2013-01-06 04:03:07 +08:00
|
|
|
union {
|
|
|
|
int a;
|
|
|
|
float b;
|
|
|
|
} u;
|
|
|
|
|
2010-09-30 05:46:16 +08:00
|
|
|
class A {
|
|
|
|
protected:
|
2013-01-06 04:03:07 +08:00
|
|
|
void foo(int, A, decltype(u));
|
2017-09-20 15:22:00 +08:00
|
|
|
void bar();
|
2010-09-30 05:46:16 +08:00
|
|
|
};
|
2013-01-05 13:58:35 +08:00
|
|
|
|
2013-01-06 04:03:07 +08:00
|
|
|
void A::foo(int, A, decltype(u)) {
|
2013-01-05 13:58:35 +08:00
|
|
|
}
|
|
|
|
|
2010-09-30 05:46:16 +08:00
|
|
|
A a;
|
2013-01-07 13:55:03 +08:00
|
|
|
|
|
|
|
int A::*x = 0;
|
|
|
|
int (A::*y)(int) = 0;
|
2017-09-20 15:22:00 +08:00
|
|
|
|
|
|
|
void A::bar() { foo(0, *this, u); }
|