xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/debug-lambda-this.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -g | FileCheck %s
2f4a2713aSLionel Sambuc 
3f4a2713aSLionel Sambuc struct D {
4f4a2713aSLionel Sambuc   D();
5f4a2713aSLionel Sambuc   D(const D&);
6f4a2713aSLionel Sambuc   int x;
7f4a2713aSLionel Sambuc   int d(int x);
8f4a2713aSLionel Sambuc };
d(int x)9f4a2713aSLionel Sambuc int D::d(int x) {
10f4a2713aSLionel Sambuc   [=] {
11f4a2713aSLionel Sambuc     return this->x;
12f4a2713aSLionel Sambuc   }();
13f4a2713aSLionel Sambuc }
14f4a2713aSLionel Sambuc 
15*0a6a1f1dSLionel Sambuc // CHECK: {{.*}} [ DW_TAG_member ] [this] [line 11, size 64, align 64, offset 0] [from ]
16