Saleem Abdulrasool | 25dbdfa | 2016-12-03 01:57:47 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++11 -triple i686-windows -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-MS |
| 2 | // RUN: %clang_cc1 -std=c++11 -triple i686-windows-itanium -fdeclspec -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-IA |
| 3 | |
| 4 | template <typename> |
| 5 | struct s {}; |
| 6 | |
| 7 | template <typename T_> |
| 8 | class t : s<T_> {}; |
| 9 | |
| 10 | extern template class t<char>; |
| 11 | template class __declspec(dllexport) t<char>; |
| 12 | |
| 13 | // CHECK-MS: dllexport {{.*}} @"\01??4?$t@D@@QAEAAV0@ABV0@@Z" |
| 14 | // CHECK-MS: dllexport {{.*}} @"\01??4?$s@D@@QAEAAU0@ABU0@@Z" |
| 15 | |
| 16 | // CHECK-IA: dllexport {{.*}} @_ZN1tIcEaSERKS0_ |
| 17 | // CHECK-IA: dllexport {{.*}} @_ZN1sIcEaSERKS0_ |
| 18 | |