diff options
Diffstat (limited to 'libcxx/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp')
-rw-r--r-- | libcxx/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libcxx/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp b/libcxx/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp index 61470af0119..da8bd05f2c9 100644 --- a/libcxx/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp +++ b/libcxx/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // <optional> // T shall be an object type and shall satisfy the requirements of Destructible #include <experimental/optional> -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -23,13 +22,7 @@ private: ~X() {} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 optional<X> opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } |