Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -g -S -emit-llvm -o %t %s
      2 // RUN: grep "i32 20, i32 3, metadata" %t | count 1
      3 // Check there is a line number entry for line 20 where b1 is destructed.
      4 class A { int a; };
      5 class B {
      6 public:
      7   B() { a = new A; }
      8   ~B() { delete a; }
      9 private:
     10   A *a;
     11 };
     12 
     13 void fn(B b);
     14 
     15 int i;
     16 void foo() {
     17   if (i) {
     18     B b1;
     19     fn (b1);
     20   }
     21 }
     22