Eric Christopher | 0086a5b | 2012-02-01 06:07:23 +0000 | [diff] [blame] | 1 | // RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s |
Eric Christopher | 42e75da | 2012-02-13 14:56:11 +0000 | [diff] [blame] | 2 | // XFAIL: * |
Eric Christopher | 0086a5b | 2012-02-01 06:07:23 +0000 | [diff] [blame] | 3 | |
| 4 | class B { |
| 5 | public: |
| 6 | int bb; |
| 7 | void fn2() {} |
| 8 | }; |
| 9 | |
| 10 | class A { |
| 11 | public: |
| 12 | int aa; |
| 13 | void fn1(B b) { b.fn2(); } |
| 14 | }; |
| 15 | |
| 16 | void foo(A *aptr) { |
| 17 | } |
| 18 | |
| 19 | void bar() { |
| 20 | A a; |
| 21 | } |
| 22 | |
Eric Christopher | 2f764a9 | 2012-02-08 00:23:18 +0000 | [diff] [blame] | 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 ] |