blob: e03024fb3cd99d092bfafba3076e6aa4d55c2d8e [file] [log] [blame]
Eric Christopher0086a5b2012-02-01 06:07:23 +00001// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s
Eric Christopher42e75da2012-02-13 14:56:11 +00002// XFAIL: *
Eric Christopher0086a5b2012-02-01 06:07:23 +00003
4class B {
5public:
6 int bb;
7 void fn2() {}
8};
9
10class A {
11public:
12 int aa;
13 void fn1(B b) { b.fn2(); }
14};
15
16void foo(A *aptr) {
17}
18
19void bar() {
20 A a;
21}
22
Eric Christopher2f764a92012-02-08 00:23:18 +000023// B should only be emitted as a forward reference (i32 4).
24// CHECK: metadata !"B", metadata !6, i32 3, i32 0, i32 0, i32 0, i32 4} ; [ DW_TAG_class_type ]