summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.alg/re.alg.search/extended.pass.cpp
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2015-03-16 15:09:15 +0000
committerEd Schouten <ed@nuxi.nl>2015-03-16 15:09:15 +0000
commitf424990d37c3c79ad8fc3a3a273469fcb72da676 (patch)
tree97bed205d9884e67e051e473b852bf86933c1c19 /libcxx/test/std/re/re.alg/re.alg.search/extended.pass.cpp
parentb592a75f5e27577da2fe94ae0ce2e709f415e7e6 (diff)
downloadbcm5719-llvm-f424990d37c3c79ad8fc3a3a273469fcb72da676.tar.gz
bcm5719-llvm-f424990d37c3c79ad8fc3a3a273469fcb72da676.zip
Don't hardcode the Czech locale name.
We already have a definition for the Czech locale name in platform_support.h. Use this one instead. While there, respect the common format of the tests. For most other tests it's the case that test_iterators.h is placed right underneath the other #includes (without an empty line). platform_support.h is included after an empty line. llvm-svn: 232383
Diffstat (limited to 'libcxx/test/std/re/re.alg/re.alg.search/extended.pass.cpp')
-rw-r--r--libcxx/test/std/re/re.alg/re.alg.search/extended.pass.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcxx/test/std/re/re.alg/re.alg.search/extended.pass.cpp b/libcxx/test/std/re/re.alg/re.alg.search/extended.pass.cpp
index a8a121bdd45..81eef2f9e4b 100644
--- a/libcxx/test/std/re/re.alg/re.alg.search/extended.pass.cpp
+++ b/libcxx/test/std/re/re.alg/re.alg.search/extended.pass.cpp
@@ -23,9 +23,10 @@
#include <regex>
#include <cassert>
-
#include "test_iterators.h"
+#include "platform_support.h" // locale name macros
+
int main()
{
{
@@ -689,7 +690,7 @@ int main()
std::regex_constants::extended)));
assert(m.size() == 0);
}
- std::locale::global(std::locale("cs_CZ.ISO8859-2"));
+ std::locale::global(std::locale(LOCALE_cs_CZ_ISO8859_2));
{
std::cmatch m;
const char s[] = "m";
@@ -1445,7 +1446,7 @@ int main()
std::regex_constants::extended)));
assert(m.size() == 0);
}
- std::locale::global(std::locale("cs_CZ.ISO8859-2"));
+ std::locale::global(std::locale(LOCALE_cs_CZ_ISO8859_2));
{
std::wcmatch m;
const wchar_t s[] = L"m";
OpenPOWER on IntegriCloud