mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 08:06:07 +00:00

Preparation to implement DW_AT_alignment support: - We pass non-zero align value to DIBuilder only when alignment was forced - Modify tests to match this change Differential Revision: https://reviews.llvm.org/D24426 llvm-svn: 284679
23 lines
684 B
C++
23 lines
684 B
C++
// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -debug-info-kind=limited | FileCheck %s
|
|
|
|
struct D {
|
|
D();
|
|
D(const D&);
|
|
int x;
|
|
int d(int x);
|
|
};
|
|
int D::d(int x) {
|
|
[=] {
|
|
return this->x;
|
|
}();
|
|
}
|
|
|
|
// 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)
|
|
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "this",
|
|
// CHECK-SAME: line: 11
|
|
// CHECK-SAME: baseType: ![[POINTER]]
|
|
// CHECK-SAME: size: 64
|
|
// CHECK-NOT: offset: 0
|
|
// CHECK-SAME: ){{$}}
|