blob: a93aa182246160c6034f6e616258c1e947fb87ff [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// https://llvm.org/PR41018
// XFAIL: windows-dll
// <locale>
// template <class charT, class Traits, class Allocator>
// bool operator()(const basic_string<charT,Traits,Allocator>& s1,
// const basic_string<charT,Traits,Allocator>& s2) const;
#include <locale>
#include <cassert>
#include "test_macros.h"
int main(int, char**)
{
{
std::locale l;
{
std::string s2("aaaaaaA");
std::string s3("BaaaaaA");
assert(l(s3, s2));
}
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
{
std::wstring s2(L"aaaaaaA");
std::wstring s3(L"BaaaaaA");
assert(l(s3, s2));
}
#endif
}
return 0;
}