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
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DICompositeType(tag: DW_TAG_class_type, name: "A",{{.*}} identifier: "_ZTS1A")
|
|
|
|
// CHECK: !DISubprogram(name: "foo", linkageName: "_ZN1A3fooEiS_3$_0"
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: DIFlagProtected
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: ![[THISTYPE:[0-9]+]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !"_ZTS1A"
|
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
|
|
|
|
// CHECK: !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: ![[MEMFUNTYPE:[0-9]+]]
|
|
|
|
// CHECK: ![[MEMFUNTYPE]] = !DISubroutineType(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));
|
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;
|