From 8ad78e905f28d72a9122302e381503159a208485 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 9 Dec 2014 15:07:42 +0000 Subject: Move the optional tests into test/experimental. They were put into test/utilities because optional was going to be part of C++14, and then was pulled and put into the Library Fundamentals TS instead. No funcitonality change here; just moving files around. llvm-svn: 223778 --- .../optional.syn/optional_rvalue_ref.fail.cpp | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libcxx/test/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp (limited to 'libcxx/test/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp') diff --git a/libcxx/test/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp b/libcxx/test/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp new file mode 100644 index 00000000000..d773e993df2 --- /dev/null +++ b/libcxx/test/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp @@ -0,0 +1,26 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// + +// A program that necessitates the instantiation of template optional for a +// reference type is ill-formed. + +#include + +int main() +{ +#if _LIBCPP_STD_VER > 11 + using std::experimental::optional; + + optional opt; +#else +#error +#endif // _LIBCPP_STD_VER > 11 +} -- cgit v1.2.3