[libcxx] r224304 - Appease the c++14 buildbots

Jonathan Roelofs jonathan at codesourcery.com
Mon Dec 15 17:18:11 PST 2014


Author: jroelofs
Date: Mon Dec 15 19:18:11 2014
New Revision: 224304

URL: http://llvm.org/viewvc/llvm-project?rev=224304&view=rev
Log:
Appease the c++14 buildbots

Modified:
    libcxx/trunk/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp

Modified: libcxx/trunk/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp?rev=224304&r1=224303&r2=224304&view=diff
==============================================================================
--- libcxx/trunk/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp (original)
+++ libcxx/trunk/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp Mon Dec 15 19:18:11 2014
@@ -25,7 +25,11 @@ using std::experimental::optional;
 
 struct X
 {
+#if _LIBCPP_STD_VER > 14
+    constexpr int test() const {return 3;}
+#else
     constexpr int test() {return 3;}
+#endif
 };
 
 #endif  // _LIBCPP_STD_VER > 11





More information about the cfe-commits mailing list