summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support
diff options
context:
space:
mode:
authorStephan T. Lavavej <stl@exchange.microsoft.com>2016-11-04 20:26:59 +0000
committerStephan T. Lavavej <stl@exchange.microsoft.com>2016-11-04 20:26:59 +0000
commit0f901c7ec4a39f07fd6b942839b669506e3247fb (patch)
tree2eb0ab0e92c2c5b0d10124d17c567811e7fc08bb /libcxx/test/std/language.support
parent6100118a52828c0a824aea5492e4e5f9ec3ce5c5 (diff)
downloadbcm5719-llvm-0f901c7ec4a39f07fd6b942839b669506e3247fb.tar.gz
bcm5719-llvm-0f901c7ec4a39f07fd6b942839b669506e3247fb.zip
[libcxx] [test] Replace _LIBCPP_STD_VER with TEST_STD_VER.
This replaces every occurrence of _LIBCPP_STD_VER in the tests with TEST_STD_VER. Additionally, for every affected file, #include "test_macros.h" is being added explicitly if it wasn't already there. https://reviews.llvm.org/D26294 llvm-svn: 286007
Diffstat (limited to 'libcxx/test/std/language.support')
-rw-r--r--libcxx/test/std/language.support/support.initlist/support.initlist.access/access.pass.cpp10
-rw-r--r--libcxx/test/std/language.support/support.initlist/support.initlist.cons/default.pass.cpp6
-rw-r--r--libcxx/test/std/language.support/support.initlist/support.initlist.range/begin_end.pass.cpp10
3 files changed, 16 insertions, 10 deletions
diff --git a/libcxx/test/std/language.support/support.initlist/support.initlist.access/access.pass.cpp b/libcxx/test/std/language.support/support.initlist/support.initlist.access/access.pass.cpp
index 2f0720639c6..c4cbc15ba7e 100644
--- a/libcxx/test/std/language.support/support.initlist/support.initlist.access/access.pass.cpp
+++ b/libcxx/test/std/language.support/support.initlist/support.initlist.access/access.pass.cpp
@@ -16,6 +16,8 @@
#include <initializer_list>
#include <cassert>
+#include "test_macros.h"
+
#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
struct A
@@ -32,7 +34,7 @@ struct A
}
};
-#if _LIBCPP_STD_VER > 11
+#if TEST_STD_VER > 11
struct B
{
constexpr B(std::initializer_list<int> il)
@@ -47,7 +49,7 @@ struct B
}
};
-#endif // _LIBCPP_STD_VER > 11
+#endif // TEST_STD_VER > 11
#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
@@ -56,7 +58,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
A test1 = {3, 2, 1};
#endif
-#if _LIBCPP_STD_VER > 11
+#if TEST_STD_VER > 11
constexpr B test2 = {3, 2, 1};
-#endif // _LIBCPP_STD_VER > 11
+#endif // TEST_STD_VER > 11
}
diff --git a/libcxx/test/std/language.support/support.initlist/support.initlist.cons/default.pass.cpp b/libcxx/test/std/language.support/support.initlist/support.initlist.cons/default.pass.cpp
index 7822a62206a..e091834340a 100644
--- a/libcxx/test/std/language.support/support.initlist/support.initlist.cons/default.pass.cpp
+++ b/libcxx/test/std/language.support/support.initlist/support.initlist.cons/default.pass.cpp
@@ -14,6 +14,8 @@
#include <initializer_list>
#include <cassert>
+#include "test_macros.h"
+
struct A {};
int main()
@@ -22,8 +24,8 @@ int main()
std::initializer_list<A> il;
assert(il.size() == 0);
#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
-#if _LIBCPP_STD_VER > 11
+#if TEST_STD_VER > 11
constexpr std::initializer_list<A> il2;
static_assert(il2.size() == 0, "");
-#endif // _LIBCPP_STD_VER > 11
+#endif // TEST_STD_VER > 11
}
diff --git a/libcxx/test/std/language.support/support.initlist/support.initlist.range/begin_end.pass.cpp b/libcxx/test/std/language.support/support.initlist/support.initlist.range/begin_end.pass.cpp
index 5fcd28f9156..f76aa5f721d 100644
--- a/libcxx/test/std/language.support/support.initlist/support.initlist.range/begin_end.pass.cpp
+++ b/libcxx/test/std/language.support/support.initlist/support.initlist.range/begin_end.pass.cpp
@@ -14,6 +14,8 @@
#include <initializer_list>
#include <cassert>
+#include "test_macros.h"
+
#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
struct A
@@ -30,7 +32,7 @@ struct A
}
};
-#if _LIBCPP_STD_VER > 11
+#if TEST_STD_VER > 11
struct B
{
constexpr B(std::initializer_list<int> il)
@@ -45,7 +47,7 @@ struct B
}
};
-#endif // _LIBCPP_STD_VER > 11
+#endif // TEST_STD_VER > 11
#endif // _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
int main()
@@ -53,7 +55,7 @@ int main()
#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
A test1 = {3, 2, 1};
#endif
-#if _LIBCPP_STD_VER > 11
+#if TEST_STD_VER > 11
constexpr B test2 = {3, 2, 1};
-#endif // _LIBCPP_STD_VER > 11
+#endif // TEST_STD_VER > 11
}
OpenPOWER on IntegriCloud