summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-limited-ctor.cpp
blob: 321f1736391f4224d697fdba039bd97407bcb291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// RUN: %clang -cc1 -debug-info-kind=constructor -emit-llvm %s -o - | FileCheck %s

// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "A"
// CHECK-NOT:              DIFlagFwdDecl
// CHECK-SAME:             ){{$}}
struct A {};
void TestA() { A a; }

// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "B"
// CHECK-SAME:             flags: DIFlagFwdDecl
struct B {
  B();
};
void TestB() { B b; }

// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "C"
// CHECK-NOT:              flags: DIFlagFwdDecl
// CHECK-SAME:             ){{$}}
struct C {
  C() {}
};
void TestC() { C c; }

// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "D"
// CHECK-NOT:              flags: DIFlagFwdDecl
// CHECK-SAME:             ){{$}}
struct D {
  D();
};
D::D() {}
OpenPOWER on IntegriCloud