summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2016-11-14 19:35:34 +0000
committerMarshall Clow <mclow.lists@gmail.com>2016-11-14 19:35:34 +0000
commit10e59fac3ed6bf7b24eb59548416b67cff330b31 (patch)
treec46844920851482fdc35ab7c92bf994bd7051c1f /libcxx/test/std
parent4fef68cb8d24137cf2d7d399d9e6efd478714acc (diff)
downloadbcm5719-llvm-10e59fac3ed6bf7b24eb59548416b67cff330b31.tar.gz
bcm5719-llvm-10e59fac3ed6bf7b24eb59548416b67cff330b31.zip
Make one of the new tests fail correctly on pre-C++17 systems
llvm-svn: 286872
Diffstat (limited to 'libcxx/test/std')
-rw-r--r--libcxx/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp b/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp
index 8bac4480ed3..81f49eaac39 100644
--- a/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp
+++ b/libcxx/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp
@@ -14,7 +14,13 @@
#include <memory>
#include <cassert>
+#include "test_macros.h"
+
int main()
{
+#if TEST_STD_VER > 14
const int *p = std::addressof<const int>(0);
+#else
+#error
+#endif
}
OpenPOWER on IntegriCloud