blob: 891470dcdbaf35317113d1173970e8120fb950a8 [file] [log] [blame]
Eric Christopher28e3c992012-09-19 21:47:34 +00001// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -g | FileCheck %s
2
3struct D {
4 D();
5 D(const D&);
6 int x;
7 int d(int x);
8};
9int D::d(int x) {
10 [=] {
11 return this->x;
12 }();
13}
14
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -070015// CHECK: !MDDerivedType(tag: DW_TAG_member, name: "this",
16// CHECK-SAME: line: 11
17// CHECK-SAME: baseType: ![[POINTER:[0-9]+]]
18// CHECK-SAME: size: 64, align: 64
19// CHECK-NOT: offset: 0
20// CHECK-SAME: ){{$}}
21// CHECK: ![[POINTER]] = !MDDerivedType(tag: DW_TAG_pointer_type