summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/debug-info-limit-type.cpp
blob: e03024fb3cd99d092bfafba3076e6aa4d55c2d8e (about) (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
// RUN: %clang  -emit-llvm -g -S %s -o - | FileCheck %s
// XFAIL: *

class B {
public:
  int bb;
  void fn2() {}
};

class A {
public:
  int aa;
  void fn1(B b) { b.fn2(); }
};

void foo(A *aptr) {
}

void bar() {
  A a;
}

// B should only be emitted as a forward reference (i32 4).
// CHECK: metadata !"B", metadata !6, i32 3, i32 0, i32 0, i32 0, i32 4} ; [ DW_TAG_class_type ]