Silence -Wunused-variable in release builds.
[llvm/stm8.git] / test / FrontendC++ / 2010-05-11-alwaysinlineinstantiation.cpp
blob9203dbd0bd9fdda97605843a64e5a3e8f5f23beb
1 // RUN: %llvmgxx -xc++ %s -S -o - | not grep ZN12basic_stringIcEC1Ev
2 // RUN: %llvmgxx -xc++ %s -S -o - | grep ZN12basic_stringIcED1Ev | count 2
4 template<class charT>
5 class basic_string
7 public:
8 basic_string();
9 ~basic_string();
12 template <class charT>
13 __attribute__ ((__visibility__("hidden"), __always_inline__)) inline
14 basic_string<charT>::basic_string()
18 template <class charT>
19 inline
20 basic_string<charT>::~basic_string()
24 typedef basic_string<char> string;
26 extern template class basic_string<char>;
28 int main()
30 string s;