From ab534366fe39b145748d5e004d58fdb0cdabfe77 Mon Sep 17 00:00:00 2001 From: Jonathan Roelofs Date: Tue, 16 Dec 2014 01:18:11 +0000 Subject: [PATCH] Appease the c++14 buildbots llvm-svn: 224304 --- .../optional.object/optional.object.observe/op_arrow.pass.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcxx/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp b/libcxx/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp index adf775be25a9..e54a224d95b9 100644 --- a/libcxx/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp +++ b/libcxx/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp @@ -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