Home | History | Annotate | Download | only in CodeGenCXX
      1 // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -fno-rtti -mconstructor-aliases -O1 -disable-llvm-optzns | FileCheck %s
      2 
      3 namespace test1 {
      4 template <typename T> class A {
      5   ~A() {}
      6 };
      7 template class A<char>;
      8 // CHECK-DAG: define weak_odr x86_thiscallcc void @"\01??1?$A@D@test1@@AAE@XZ"
      9 }
     10 
     11 namespace test2 {
     12 struct A {
     13   virtual ~A();
     14 };
     15 struct B : A {
     16   B();
     17   virtual ~B();
     18 };
     19 
     20 A::~A() {}
     21 B::~B() {}
     22 void foo() {
     23   B b;
     24 }
     25 // CHECK-DAG: @"\01??1B@test2@@UAE@XZ" = alias bitcast (void (%"struct.test2::A"*)* @"\01??1A@test2@@UAE@XZ" to void (%"struct.test2::B"*)*)
     26 }
     27