// RUN: %clang_cc1 -std=c++11 -triple i686-windows -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-MS // RUN: %clang_cc1 -std=c++11 -triple i686-windows-itanium -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-IA template struct s {}; template class t : s {}; extern template class t; template class __declspec(dllexport) t; // CHECK-MS: dllexport {{.*}} @"??4?$t@D@@QAEAAV0@ABV0@@Z" // CHECK-MS: dllexport {{.*}} @"??4?$s@D@@QAEAAU0@ABU0@@Z" // CHECK-IA: dllexport {{.*}} @_ZN1tIcEaSERKS0_ // CHECK-IA: dllexport {{.*}} @_ZN1sIcEaSERKS0_