brintos

brintos / llvm-project-archived public Read only

0
0
Text · 686 B · 019d09c Raw
23 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-apple-darwin10.0.0 -emit-llvm -o - %s -fexceptions -std=c++11 -debug-info-kind=limited | FileCheck %s2 3struct D {4  D();5  D(const D&);6  int x;7  void d(int x);8};9void D::d(int x) {10  [=] {11    return this->x;12  }();13}14 15// CHECK: ![[D:[0-9]+]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "D",16// CHECK: ![[POINTER:.*]] = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: ![[D]], size: 64)17// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "this",18// CHECK-SAME:           line: 1119// CHECK-SAME:           baseType: ![[POINTER]]20// CHECK-SAME:           size: 6421// CHECK-NOT:            offset: 022// CHECK-SAME:           ){{$}}23