1 // RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s 2 // XFAIL: * 3 4 class B { 5 public: 6 int bb; fn2()7 void fn2() {} 8 }; 9 10 class A { 11 public: 12 int aa; fn1(B b)13 void fn1(B b) { b.fn2(); } 14 }; 15 foo(A * aptr)16void foo(A *aptr) { 17 } 18 bar()19void bar() { 20 A a; 21 } 22 23 // 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 ] 25