summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2014-12-16 01:18:11 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2014-12-16 01:18:11 +0000
commitab534366fe39b145748d5e004d58fdb0cdabfe77 (patch)
tree673d56329c40570df0ddeb1d6d67b3bb2070a8c9 /libcxx
parent45810b463130453c9e84a8fad213106c75cb71cb (diff)
downloadbcm5719-llvm-ab534366fe39b145748d5e004d58fdb0cdabfe77.tar.gz
bcm5719-llvm-ab534366fe39b145748d5e004d58fdb0cdabfe77.zip
Appease the c++14 buildbots
llvm-svn: 224304
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp4
1 files changed, 4 insertions, 0 deletions
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 adf775be25a..e54a224d95b 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
OpenPOWER on IntegriCloud