2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -debug-info-kind=limited | FileCheck %s
|
2012-09-20 05:47:34 +08:00
|
|
|
|
|
|
|
struct D {
|
|
|
|
D();
|
|
|
|
D(const D&);
|
|
|
|
int x;
|
|
|
|
int d(int x);
|
|
|
|
};
|
|
|
|
int D::d(int x) {
|
|
|
|
[=] {
|
|
|
|
return this->x;
|
|
|
|
}();
|
|
|
|
}
|
|
|
|
|
2016-04-24 05:08:27 +08:00
|
|
|
// CHECK: ![[D:[0-9]+]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "D",
|
|
|
|
// CHECK: ![[POINTER:.*]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: ![[D]], size: 64, align: 64)
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "this",
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: line: 11
|
2016-04-15 23:55:45 +08:00
|
|
|
// CHECK-SAME: baseType: ![[POINTER]]
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: size: 64, align: 64
|
|
|
|
// CHECK-NOT: offset: 0
|
|
|
|
// CHECK-SAME: ){{$}}
|