Eric Christopher | 81e5a93 | 2012-07-11 01:49:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -g -S -emit-llvm %s -o - | FileCheck %s |
| 2 | |
Devang Patel | cd9199e | 2010-04-13 00:08:43 +0000 | [diff] [blame] | 3 | class A { int a; }; |
| 4 | class B { |
| 5 | public: |
| 6 | B() { a = new A; } |
| 7 | ~B() { delete a; } |
| 8 | private: |
| 9 | A *a; |
| 10 | }; |
| 11 | |
| 12 | void fn(B b); |
| 13 | |
| 14 | int i; |
| 15 | void foo() { |
| 16 | if (i) { |
| 17 | B b1; |
| 18 | fn (b1); |
| 19 | } |
| 20 | } |
Eric Christopher | 81e5a93 | 2012-07-11 01:49:24 +0000 | [diff] [blame] | 21 | // Check there is a line number entry for line 19 where b1 is destructed. |
Eric Christopher | da3301e | 2012-10-18 21:52:18 +0000 | [diff] [blame] | 22 | // CHECK: i32 19, i32 0, metadata |