summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/re/re.traits/transform.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.traits/transform.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.traits/transform.pass.cpp')
-rw-r--r--libcxx/test/std/re/re.traits/transform.pass.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libcxx/test/std/re/re.traits/transform.pass.cpp b/libcxx/test/std/re/re.traits/transform.pass.cpp
index c3bce7939fe..85235e045d8 100644
--- a/libcxx/test/std/re/re.traits/transform.pass.cpp
+++ b/libcxx/test/std/re/re.traits/transform.pass.cpp
@@ -21,6 +21,8 @@
#include <cassert>
#include "test_iterators.h"
+#include "platform_support.h" // locale name macros
+
int main()
{
{
@@ -29,7 +31,7 @@ int main()
const char B[] = "B";
typedef forward_iterator<const char*> F;
assert(t.transform(F(a), F(a+1)) > t.transform(F(B), F(B+1)));
- t.imbue(std::locale("cs_CZ.ISO8859-2"));
+ t.imbue(std::locale(LOCALE_cs_CZ_ISO8859_2));
assert(t.transform(F(a), F(a+1)) < t.transform(F(B), F(B+1)));
}
{
@@ -38,7 +40,7 @@ int main()
const wchar_t B[] = L"B";
typedef forward_iterator<const wchar_t*> F;
assert(t.transform(F(a), F(a+1)) > t.transform(F(B), F(B+1)));
- t.imbue(std::locale("cs_CZ.ISO8859-2"));
+ t.imbue(std::locale(LOCALE_cs_CZ_ISO8859_2));
assert(t.transform(F(a), F(a+1)) < t.transform(F(B), F(B+1)));
}
}
OpenPOWER on IntegriCloud