[SandboxVec][BottomUpVec] Fix packing when PHIs are present (#124206)
[llvm-project.git] / libcxx / test / std / localization / locales / locale / locale.operators / compare.pass.cpp
blobc435f86f7e9e7ea5a7337f4e00d8852a360cec21
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // https://llvm.org/PR41018
10 // XFAIL: windows-dll && msvc
12 // <locale>
14 // template <class charT, class Traits, class Allocator>
15 // bool operator()(const basic_string<charT,Traits,Allocator>& s1,
16 // const basic_string<charT,Traits,Allocator>& s2) const;
18 #include <locale>
19 #include <cassert>
21 #include "test_macros.h"
23 int main(int, char**)
26 std::locale l;
28 std::string s2("aaaaaaA");
29 std::string s3("BaaaaaA");
30 assert(l(s3, s2));
32 #ifndef TEST_HAS_NO_WIDE_CHARACTERS
34 std::wstring s2(L"aaaaaaA");
35 std::wstring s3(L"BaaaaaA");
36 assert(l(s3, s2));
38 #endif
41 return 0;