From 10e59fac3ed6bf7b24eb59548416b67cff330b31 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Mon, 14 Nov 2016 19:35:34 +0000 Subject: [PATCH] Make one of the new tests fail correctly on pre-C++17 systems llvm-svn: 286872 --- .../specialized.addressof/addressof.temp.fail.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 8bac4480ed33..81f49eaac39b 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 #include +#include "test_macros.h" + int main() { +#if TEST_STD_VER > 14 const int *p = std::addressof(0); +#else +#error +#endif }