1 // RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -fno-rtti -mconstructor-aliases -O1 -disable-llvm-passes | FileCheck %s
4 template <typename T
> class A
{
7 template class A
<char>;
8 // CHECK-DAG: define weak_odr dso_local x86_thiscallcc void @"??1?$A@D@test1@@AAE@XZ"
25 // CHECK-DAG: @"??1B@test2@@UAE@XZ" = dso_local unnamed_addr alias void (ptr), ptr @"??1A@test2@@UAE@XZ"
29 struct A
{ virtual ~A(); };
32 // CHECK-DAG: define dso_local x86_thiscallcc void @"??1A@test3@@UAE@XZ"(
38 template struct B
<int>;
40 // This has to be weak, and emitting weak aliases is fragile, so we don't do the
42 // CHECK-DAG: define weak_odr dso_local x86_thiscallcc void @"??1?$B@H@test3@@UAE@XZ"(