1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <locale>
11 
12 // template <class charT, class Traits, class Allocator>
13 //   bool operator()(const basic_string<charT,Traits,Allocator>& s1,
14 //                   const basic_string<charT,Traits,Allocator>& s2) const;
15 
16 #include <locale>
17 #include <cassert>
18 
main()19 int main()
20 {
21     {
22         std::locale l;
23         {
24             std::string s2("aaaaaaA");
25             std::string s3("BaaaaaA");
26             assert(l(s3, s2));
27         }
28         {
29             std::wstring s2(L"aaaaaaA");
30             std::wstring s3(L"BaaaaaA");
31             assert(l(s3, s2));
32         }
33     }
34 }
35