aboutsummaryrefslogtreecommitdiffstats
path: root/test/std/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:01 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:01 +0000
commitb7332b04df5d50c92640c74cfeb138ecb7e3f7ae (patch)
treeb1b49faa0cab1482905e0cda6f0ee5d97e3fe08f /test/std/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp
parent6012fe9abb1f01b1b5b4ca908464804c21ff8602 (diff)
downloadsrc-b7332b04df5d50c92640c74cfeb138ecb7e3f7ae.tar.gz
src-b7332b04df5d50c92640c74cfeb138ecb7e3f7ae.zip
Remove upstream files and directories from vendor/libc++/dist that we do
not use. This saves on repository space, and reduces the number of tree conflicts when merging.
Notes
Notes: svn path=/vendor/libc++/dist/; revision=351269
Diffstat (limited to 'test/std/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp')
-rw-r--r--test/std/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp72
1 files changed, 0 insertions, 72 deletions
diff --git a/test/std/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp b/test/std/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp
deleted file mode 100644
index dfbdeaea954b..000000000000
--- a/test/std/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// REQUIRES: locale.en_US.UTF-8
-
-// <locale>
-
-// template <class charT> class collate_byname
-
-// int compare(const charT* low1, const charT* high1,
-// const charT* low2, const charT* high2) const;
-
-// I'm currently unable to confirm that collation based on named locales
-// has any difference from "C" collation. But I do believe I'm picking
-// up the OS's collation files.
-
-// TODO investigation needed.
-// Glibc seems to collate files differently from the way Apple's C library does
-// it.
-// XFAIL: linux-gnu
-
-#include <locale>
-#include <string>
-#include <cassert>
-
-#include <stdio.h>
-
-#include "platform_support.h" // locale name macros
-
-int main()
-{
- {
- std::locale l(LOCALE_en_US_UTF_8);
- {
- const std::collate<char>& f = std::use_facet<std::collate<char> >(l);
- std::string s2("aaaaaaA");
- std::string s3("BaaaaaA");
- assert(f.compare(s2.data(), s2.data() + s2.size(),
- s3.data(), s3.data() + s3.size()) == 1);
- }
- {
- const std::collate<wchar_t>& f = std::use_facet<std::collate<wchar_t> >(l);
- std::wstring s2(L"aaaaaaA");
- std::wstring s3(L"BaaaaaA");
- assert(f.compare(s2.data(), s2.data() + s2.size(),
- s3.data(), s3.data() + s3.size()) == 1);
- }
- }
- {
- std::locale l("C");
- {
- const std::collate<char>& f = std::use_facet<std::collate<char> >(l);
- std::string s2("aaaaaaA");
- std::string s3("BaaaaaA");
- assert(f.compare(s2.data(), s2.data() + s2.size(),
- s3.data(), s3.data() + s3.size()) == 1);
- }
- {
- const std::collate<wchar_t>& f = std::use_facet<std::collate<wchar_t> >(l);
- std::wstring s2(L"aaaaaaA");
- std::wstring s3(L"BaaaaaA");
- assert(f.compare(s2.data(), s2.data() + s2.size(),
- s3.data(), s3.data() + s3.size()) == 1);
- }
- }
-}