brintos

brintos / llvm-project-archived public Read only

0
0
Text · 361 B · d30c6c3 Raw
23 lines · cpp
1// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s2 3class 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}21// Check there is a line number entry for line 19 where b1 is destructed.22// CHECK: !DILocation(line: 19,23