[libcxx] r286872 - Make one of the new tests fail correctly on pre-C++17 systems

Marshall Clow via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 14 11:35:34 PST 2016


Author: marshall
Date: Mon Nov 14 13:35:34 2016
New Revision: 286872

URL: http://llvm.org/viewvc/llvm-project?rev=286872&view=rev
Log:
Make one of the new tests fail correctly on pre-C++17 systems

Modified:
    libcxx/trunk/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp

Modified: libcxx/trunk/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp?rev=286872&r1=286871&r2=286872&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/specialized.algorithms/specialized.addressof/addressof.temp.fail.cpp Mon Nov 14 13:35:34 2016
@@ -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
 }




More information about the cfe-commits mailing list