1// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3// CHECK-NOT: ZN12basic_stringIcEC1Ev
4// CHECK: ZN12basic_stringIcED1Ev
5// CHECK: ZN12basic_stringIcED1Ev
6template<class charT>
7class basic_string
8{
9public:
10	basic_string();
11	~basic_string();
12};
13
14template <class charT>
15__attribute__ ((__visibility__("hidden"), __always_inline__)) inline
16basic_string<charT>::basic_string()
17{
18}
19
20template <class charT>
21inline
22basic_string<charT>::~basic_string()
23{
24}
25
26typedef basic_string<char> string;
27
28extern template class basic_string<char>;
29
30int main()
31{
32	string s;
33}
34