blob: f2e2a39bd6b6b9b03b0b78f63767c46701ea9d67 [file] [log] [blame]
Eric Christopher81e5a932012-07-11 01:49:24 +00001// RUN: %clang_cc1 -g -S -emit-llvm %s -o - | FileCheck %s
2
Devang Patelcd9199e2010-04-13 00:08:43 +00003class A { int a; };
4class B {
5public:
6 B() { a = new A; }
7 ~B() { delete a; }
8private:
9 A *a;
10};
11
12void fn(B b);
13
14int i;
15void foo() {
16 if (i) {
17 B b1;
18 fn (b1);
19 }
20}
Eric Christopher81e5a932012-07-11 01:49:24 +000021// Check there is a line number entry for line 19 where b1 is destructed.
Eric Christopherda3301e2012-10-18 21:52:18 +000022// CHECK: i32 19, i32 0, metadata