gcc/testsuite/g++.dg/abi/abi-tag11.C
raw| 1 | // { dg-final { scan-assembler "_Z1fSbB3fooIwSt11char_traitsIwESaIwEES3_" } } |
| 2 | |
| 3 | namespace std { |
| 4 | template <class T> struct char_traits {}; |
| 5 | template <class T> struct allocator {}; |
| 6 | template <class T, class U, class V> |
| 7 | struct __attribute ((abi_tag ("foo"))) basic_string { }; |
| 8 | typedef basic_string<wchar_t,char_traits<wchar_t>,allocator<wchar_t> > |
| 9 | wstring; |
| 10 | } |
| 11 | |
| 12 | void f(std::wstring,std::wstring) {} |