Index: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/alloc.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/alloc.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/alloc.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // dynarray.cons // template @@ -23,8 +24,6 @@ #include <__config> -#if _LIBCPP_STD_VER > 11 - #include #include @@ -81,6 +80,4 @@ // test ( nstr("fourteen"), Alloc(3), Alloc(4) ); // test ( { nstr("1"), nstr("1"), nstr("2"), nstr("3"), nstr("5"), nstr("8")}, Alloc(6)); } -#else -int main() {} -#endif + Index: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.mutate/default.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.mutate/default.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.mutate/default.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // dynarray.data // void fill(const T& v); @@ -15,8 +16,6 @@ #include <__config> -#if _LIBCPP_STD_VER > 11 - #include #include @@ -43,6 +42,4 @@ test> ( std::complex ( 14, 0 )); test ( "fourteen" ); } -#else -int main() {} -#endif + Index: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/at.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/at.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/at.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // dynarray.overview @@ -15,8 +16,6 @@ #include <__config> -#if _LIBCPP_STD_VER > 11 - #include #include @@ -90,6 +89,4 @@ test> ( {} ); test ( {} ); } -#else -int main() {} -#endif + Index: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/begin_end.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/begin_end.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/begin_end.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // dynarray.overview @@ -27,8 +28,6 @@ #include <__config> -#if _LIBCPP_STD_VER > 11 - #include #include @@ -103,6 +102,4 @@ test> ( std::complex ( 14, 0 )); test ( "fourteen" ); } -#else -int main() {} -#endif + Index: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/capacity.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/capacity.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/capacity.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // dynarray.overview // size_type size() const noexcept; @@ -15,8 +16,6 @@ #include <__config> -#if _LIBCPP_STD_VER > 11 - #include #include @@ -52,6 +51,4 @@ test> ( {} ); test ( {} ); } -#else -int main() {} -#endif + Index: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/indexing.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/indexing.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/indexing.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // dynarray.overview // const_reference at(size_type n) const; @@ -14,8 +15,6 @@ #include <__config> -#if _LIBCPP_STD_VER > 11 - #include #include @@ -66,6 +65,4 @@ test> ( {} ); test ( {} ); } -#else -int main() {} -#endif + Index: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // dynarray.data // template @@ -15,8 +16,6 @@ #include <__config> -#if _LIBCPP_STD_VER > 11 - #include #include "test_allocator.h" @@ -26,6 +25,4 @@ { static_assert ( std::uses_allocator, test_allocator>::value, "" ); } -#else -int main() {} -#endif + Index: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.zero/default.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.zero/default.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.zero/default.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // dynarray.zero // dynarray shall provide support for the special case of construction with a size of zero. @@ -18,8 +19,6 @@ #include <__config> -#if _LIBCPP_STD_VER > 11 - #include #include @@ -45,6 +44,4 @@ test> (); test (); } -#else -int main() {} -#endif + Index: libcxx/trunk/test/libcxx/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp @@ -7,16 +7,15 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // Test that is included. #include -#if _LIBCPP_STD_VER > 11 -# ifndef _LIBCPP_RATIO -# error " must include " -# endif +#ifndef _LIBCPP_RATIO +# error " must include " #endif int main() Index: libcxx/trunk/test/libcxx/experimental/utilities/syserror/header.system_error.synop/includes.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/utilities/syserror/header.system_error.synop/includes.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/utilities/syserror/header.system_error.synop/includes.pass.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include -#if _LIBCPP_STD_VER > 11 -# ifndef _LIBCPP_SYSTEM_ERROR -# error " must include " -# endif +#ifndef _LIBCPP_SYSTEM_ERROR +# error " must include " #endif int main() Index: libcxx/trunk/test/libcxx/experimental/utilities/time/header.chrono.synop/includes.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/utilities/time/header.chrono.synop/includes.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/utilities/time/header.chrono.synop/includes.pass.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include -#if _LIBCPP_STD_VER > 11 -# ifndef _LIBCPP_CHRONO -# error " must include " -# endif +#ifndef _LIBCPP_CHRONO +# error " must include " #endif int main() Index: libcxx/trunk/test/libcxx/experimental/utilities/tuple/header.tuple.synop/includes.pass.cpp =================================================================== --- libcxx/trunk/test/libcxx/experimental/utilities/tuple/header.tuple.synop/includes.pass.cpp +++ libcxx/trunk/test/libcxx/experimental/utilities/tuple/header.tuple.synop/includes.pass.cpp @@ -7,15 +7,14 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include int main() { -#if _LIBCPP_STD_VER > 11 -# ifndef _LIBCPP_TUPLE -# error " must include " -# endif -#endif /* _LIBCPP_STD_VER > 11 */ +#ifndef _LIBCPP_TUPLE +# error " must include " +#endif } Index: libcxx/trunk/test/std/containers/sequences/list/db_iterators_9.pass.cpp =================================================================== --- libcxx/trunk/test/std/containers/sequences/list/db_iterators_9.pass.cpp +++ libcxx/trunk/test/std/containers/sequences/list/db_iterators_9.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // Operations on "NULL" iterators @@ -25,7 +26,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 { unsigned lib_asserts; @@ -55,7 +55,6 @@ try { (void) ci->val; } catch (int) { ++lib_asserts; } assert(lib_asserts == 4); } -#endif } #else Index: libcxx/trunk/test/std/containers/sequences/vector.bool/emplace.pass.cpp =================================================================== --- libcxx/trunk/test/std/containers/sequences/vector.bool/emplace.pass.cpp +++ libcxx/trunk/test/std/containers/sequences/vector.bool/emplace.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // vector @@ -18,7 +19,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 { typedef std::vector C; C c; @@ -64,5 +64,4 @@ assert(c[1] == true); assert(c.back() == true); } -#endif } Index: libcxx/trunk/test/std/containers/sequences/vector.bool/emplace_back.pass.cpp =================================================================== --- libcxx/trunk/test/std/containers/sequences/vector.bool/emplace_back.pass.cpp +++ libcxx/trunk/test/std/containers/sequences/vector.bool/emplace_back.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // vector.bool @@ -19,7 +20,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 { typedef std::vector C; C c; @@ -53,5 +53,4 @@ assert(c[1] == true); assert(c.back() == true); } -#endif } Index: libcxx/trunk/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/default_ctor.pass.cpp =================================================================== --- libcxx/trunk/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/default_ctor.pass.cpp +++ libcxx/trunk/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/default_ctor.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // class error_category @@ -18,8 +19,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - class test1 : public std::error_category { @@ -29,12 +28,8 @@ virtual std::string message(int) const {return std::string();} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 static_assert(std::is_nothrow_default_constructible::value, "error_category() must exist and be noexcept"); -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.hash/hash.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.hash/hash.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.hash/hash.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template struct hash>; @@ -19,7 +20,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; { @@ -43,5 +43,4 @@ opt = std::unique_ptr(new int(3)); assert(std::hash>{}(opt) == std::hash{}(*opt)); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/default.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/default.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/default.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 + // // class bad_optional_access is default constructible @@ -16,8 +18,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::bad_optional_access; bad_optional_access ex; -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/derive.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/derive.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/derive.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 + // // class bad_optional_access : public logic_error @@ -16,10 +18,8 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::bad_optional_access; static_assert(std::is_base_of::value, ""); static_assert(std::is_convertible::value, ""); -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/equal.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator==(const optional& x, const T& v); @@ -14,8 +15,6 @@ #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -28,11 +27,8 @@ constexpr bool operator == ( const X &lhs, const X &rhs ) { return lhs.i_ == rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 { typedef X T; typedef optional O; @@ -54,5 +50,4 @@ static_assert ( (T(2) == o3), "" ); static_assert ( (val == o3), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator>(const optional& x, const T& v); @@ -14,8 +15,6 @@ #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -28,12 +27,8 @@ constexpr bool operator < ( const X &lhs, const X &rhs ) { return lhs.i_ < rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 - { typedef X T; typedef optional O; @@ -57,5 +52,4 @@ static_assert ( !(val > o3), "" ); // equal static_assert ( (T(3) > o3), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater_equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater_equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater_equal.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator>=(const optional& x, const T& v); @@ -14,8 +15,6 @@ #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -28,12 +27,8 @@ constexpr bool operator < ( const X &lhs, const X &rhs ) { return lhs.i_ < rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 - { typedef X T; typedef optional O; @@ -57,5 +52,4 @@ static_assert ( (val >= o3), "" ); // equal static_assert ( (T(3) >= o3), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_equal.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator<=(const optional& x, const T& v); @@ -14,8 +15,6 @@ #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -28,12 +27,8 @@ constexpr bool operator < ( const X &lhs, const X &rhs ) { return lhs.i_ < rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 - { typedef X T; typedef optional O; @@ -57,5 +52,4 @@ static_assert ( (val <= o3), "" ); // equal static_assert ( !(T(3) <= o3), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_than.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_than.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_than.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator<(const optional& x, const T& v); @@ -14,8 +15,6 @@ #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -28,12 +27,8 @@ constexpr bool operator < ( const X &lhs, const X &rhs ) { return lhs.i_ < rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 - { typedef X T; typedef optional O; @@ -57,5 +52,4 @@ static_assert ( !(val < o3), "" ); // equal static_assert ( !(T(3) < o3), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/not_equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/not_equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/not_equal.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator!=(const optional& x, const T& v); @@ -14,8 +15,6 @@ #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -28,11 +27,8 @@ constexpr bool operator == ( const X &lhs, const X &rhs ) { return lhs.i_ == rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 { typedef X T; typedef optional O; @@ -54,5 +50,4 @@ static_assert ( !(T(2) != o3), "" ); static_assert ( !(val != o3), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.inplace/in_place_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.inplace/in_place_t.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.inplace/in_place_t.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // struct in_place_t{}; @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; using std::experimental::in_place_t; using std::experimental::in_place; @@ -28,15 +27,10 @@ return 3; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 - static_assert((std::is_class::value), ""); static_assert((std::is_empty::value), ""); static_assert(test(in_place) == 3, ""); -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.nullops/equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.nullops/equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.nullops/equal.pass.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// - +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator==(const optional& x, nullopt_t) noexcept; @@ -17,7 +17,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; @@ -37,5 +36,4 @@ static_assert (noexcept(nullopt == o1), ""); static_assert (noexcept(o1 == nullopt), ""); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.nullops/greater.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.nullops/greater.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.nullops/greater.pass.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// - +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator>(const optional& x, nullopt_t) noexcept; @@ -17,7 +17,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; @@ -37,5 +36,4 @@ static_assert (noexcept(nullopt > o1), ""); static_assert (noexcept(o1 > nullopt), ""); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.nullops/greater_equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.nullops/greater_equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.nullops/greater_equal.pass.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// - +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator>=(const optional& x, nullopt_t) noexcept; @@ -17,7 +17,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; @@ -37,5 +36,4 @@ static_assert (noexcept(nullopt >= o1), ""); static_assert (noexcept(o1 >= nullopt), ""); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.nullops/less_than.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.nullops/less_than.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.nullops/less_than.pass.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// - +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator<(const optional& x, nullopt_t) noexcept; @@ -17,7 +17,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; @@ -37,5 +36,4 @@ static_assert (noexcept(nullopt < o1), ""); static_assert (noexcept(o1 < nullopt), ""); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.nullops/not_equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.nullops/not_equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.nullops/not_equal.pass.cpp @@ -7,7 +7,7 @@ // //===----------------------------------------------------------------------===// - +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator!=(const optional& x, nullopt_t) noexcept; @@ -17,7 +17,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; @@ -37,5 +36,4 @@ static_assert (noexcept(nullopt != o1), ""); static_assert (noexcept(o1 != nullopt), ""); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.nullopt/nullopt_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.nullopt/nullopt_t.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.nullopt/nullopt_t.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // struct nullopt_t{see below}; @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; @@ -28,16 +27,12 @@ return 3; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 static_assert((std::is_class::value), ""); static_assert((std::is_empty::value), ""); static_assert((std::is_literal_type::value), ""); static_assert((!std::is_default_constructible::value), ""); static_assert(test(nullopt) == 3, ""); -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/assign_value.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/assign_value.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/assign_value.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template optional& operator=(U&& v); @@ -16,19 +17,14 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X { }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 static_assert(std::is_assignable, int>::value, ""); static_assert(std::is_assignable, int&>::value, ""); static_assert(std::is_assignable&, int>::value, ""); @@ -68,5 +64,4 @@ assert(static_cast(opt) == true); assert(**opt == 3); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/copy.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/copy.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/copy.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -16,8 +17,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -34,11 +33,8 @@ bool X::throw_now = false; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { optional opt; constexpr optional opt2; @@ -87,5 +83,4 @@ assert(static_cast(opt) == false); } } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -17,8 +18,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; class X @@ -55,11 +54,8 @@ bool Z::dtor_called = false; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { optional opt; opt.emplace(); @@ -145,5 +141,4 @@ assert(Z::dtor_called == true); } } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace_initializer_list.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace_initializer_list.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace_initializer_list.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -18,8 +19,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; class X @@ -70,11 +69,8 @@ bool Z::dtor_called = false; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { X x; { @@ -113,5 +109,4 @@ assert(Z::dtor_called == true); } } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/move.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/move.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/move.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -18,8 +19,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -42,11 +41,8 @@ bool X::throw_now = false; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { static_assert(std::is_nothrow_move_assignable>::value, ""); optional opt; @@ -100,5 +96,4 @@ { static_assert(std::is_nothrow_move_assignable>::value, ""); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/nullopt_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/nullopt_t.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/nullopt_t.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // optional& operator=(nullopt_t) noexcept; @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; @@ -29,11 +28,8 @@ bool X::dtor_called = false; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { optional opt; static_assert(noexcept(opt = nullopt) == true, ""); @@ -63,5 +59,4 @@ assert(static_cast(opt) == false); } } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/copy.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/copy.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/copy.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -16,8 +17,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; template @@ -76,11 +75,8 @@ }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { typedef int T; optional rhs; @@ -121,5 +117,4 @@ optional rhs(Z(3)); test(rhs, true); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/default.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/default.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/default.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // constexpr optional() noexcept; @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; template @@ -55,13 +54,9 @@ X(); }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 test_constexpr>(); test_constexpr>(); test>(); -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/initializer_list.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/initializer_list.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/initializer_list.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -19,8 +20,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; using std::experimental::in_place_t; using std::experimental::in_place; @@ -67,12 +66,8 @@ {return x.i_ == y.i_ && x.j_ == y.j_;} }; - -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { static_assert(!std::is_constructible&>::value, ""); static_assert(!std::is_constructible, std::initializer_list&>::value, ""); @@ -123,5 +118,4 @@ }; } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/move.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/move.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/move.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -16,8 +17,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; template @@ -75,12 +74,8 @@ friend constexpr bool operator==(const Z& x, const Z& y) {return x.i_ == y.i_;} }; - -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { typedef int T; optional rhs; @@ -121,5 +116,4 @@ optional rhs(Z(3)); test(rhs, true); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // constexpr optional(nullopt_t) noexcept; @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; @@ -56,13 +55,9 @@ X(); }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 test_constexpr>(); test_constexpr>(); test>(); -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // ~optional(); @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; class X @@ -29,11 +28,8 @@ bool X::dtor_called = false; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { typedef int T; static_assert(std::is_trivially_destructible::value, ""); @@ -55,5 +51,4 @@ } assert(X::dtor_called == true); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/bool.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/bool.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/bool.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // constexpr explicit optional::operator bool() const noexcept; @@ -17,7 +18,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; { @@ -28,5 +28,4 @@ constexpr optional opt(0); static_assert(opt, ""); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // T& optional::operator*(); @@ -19,8 +20,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -29,11 +28,8 @@ int test() {return 4;} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { optional opt(X{}); assert((*opt).test() == 4); @@ -45,5 +41,4 @@ assert(false); } #endif // _LIBCPP_DEBUG -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference_const.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference_const.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference_const.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // constexpr const T& optional::operator*() const; @@ -19,8 +20,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -33,11 +32,8 @@ int test() const {return 2;} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { constexpr optional opt(X{}); static_assert((*opt).test() == 3, ""); @@ -53,5 +49,4 @@ assert(false); } #endif // _LIBCPP_DEBUG -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // constexpr T* optional::operator->(); @@ -19,8 +20,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -28,11 +27,8 @@ constexpr int test() const {return 3;} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { constexpr optional opt(X{}); static_assert(opt->test() == 3, ""); @@ -44,5 +40,4 @@ assert(false); } #endif // _LIBCPP_DEBUG -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow_const.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow_const.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow_const.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // constexpr const T* optional::operator->() const; @@ -19,8 +20,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -39,11 +38,8 @@ constexpr int test() const {return 1;} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { constexpr optional opt(X{}); static_assert(opt->test() == 3, ""); @@ -63,5 +59,4 @@ assert(false); } #endif // _LIBCPP_DEBUG -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -16,8 +17,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; using std::experimental::bad_optional_access; @@ -29,11 +28,8 @@ int test() {return 4;} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { optional opt; opt.emplace(); @@ -50,5 +46,4 @@ { } } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // constexpr const T& optional::value() const; @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -25,16 +24,10 @@ int test() {return 4;} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { constexpr optional opt; static_assert(opt.value().test() == 3, ""); } -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -16,8 +17,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; using std::experimental::in_place_t; using std::experimental::in_place; @@ -31,11 +30,8 @@ int test() {return 4;} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { constexpr optional opt(in_place); static_assert(opt.value().test() == 3, ""); @@ -55,5 +51,4 @@ { } } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template T optional::value_or(U&& v) &&; @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; using std::experimental::in_place_t; using std::experimental::in_place; @@ -40,11 +39,8 @@ {return x.i_ == y.i_;} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { optional opt(in_place, 2); Y y(3); @@ -67,5 +63,4 @@ assert(std::move(opt).value_or(Y(3)) == 4); assert(!opt); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or_const.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or_const.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or_const.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr T optional::value_or(U&& v) const&; @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct Y @@ -37,11 +36,8 @@ {return x.i_ == y.i_;} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { constexpr optional opt(2); constexpr Y y(3); @@ -78,5 +74,4 @@ const optional opt; assert(opt.value_or(Y(3)) == 4); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.swap/swap.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.swap/swap.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.swap/swap.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -18,8 +19,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; class X @@ -63,12 +62,8 @@ friend void swap(Z& x, Z& y) {throw 6;} }; - -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { optional opt1; optional opt2; @@ -303,5 +298,4 @@ assert(static_cast(opt2) == true); assert(*opt2 == 2); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional_const_void.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional_const_void.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional_const_void.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // T shall be an object type and shall satisfy the requirements of Destructible @@ -15,11 +16,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // T shall be an object type and shall satisfy the requirements of Destructible #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -23,13 +22,7 @@ ~X() {} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_noexcept_destructible.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_noexcept_destructible.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_noexcept_destructible.fail.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // T shall be an object type and shall satisfy the requirements of Destructible #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -22,13 +21,7 @@ ~X() noexcept(false) {} }; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/optional_void.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/optional_void.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/optional_void.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // T shall be an object type and shall satisfy the requirements of Destructible @@ -15,11 +16,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.object/types.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.object/types.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.object/types.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template @@ -19,8 +20,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; template @@ -30,14 +29,10 @@ static_assert(std::is_same::value, ""); } -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 test, int>(); test, const int>(); test, double>(); test, const double>(); -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.relops/equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.relops/equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.relops/equal.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator==(const optional& x, const optional& y); @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -29,11 +28,8 @@ constexpr bool operator == ( const X &lhs, const X &rhs ) { return lhs.i_ == rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 { typedef X T; typedef optional O; @@ -75,5 +71,4 @@ static_assert ( o5 == o5 , "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator>= (const optional& x, const optional& y); #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -27,11 +26,8 @@ constexpr bool operator < ( const X &lhs, const X &rhs ) { return lhs.i_ < rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 { typedef optional O; @@ -71,5 +67,4 @@ static_assert ( !(o5 >= o4), "" ); static_assert ( (o5 >= o5), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.relops/greater_than.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.relops/greater_than.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.relops/greater_than.pass.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator> (const optional& x, const optional& y); #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -27,11 +26,8 @@ constexpr bool operator < ( const X &lhs, const X &rhs ) { return lhs.i_ < rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 { typedef optional O; @@ -71,5 +67,4 @@ static_assert ( !(o5 > o4), "" ); static_assert ( !(o5 > o5), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.relops/less_equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.relops/less_equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.relops/less_equal.pass.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator<= (const optional& x, const optional& y); #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -27,11 +26,8 @@ constexpr bool operator < ( const X &lhs, const X &rhs ) { return lhs.i_ < rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 { typedef optional O; @@ -71,5 +67,4 @@ static_assert ( (o5 <= o4), "" ); static_assert ( (o5 <= o5), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.relops/less_than.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.relops/less_than.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.relops/less_than.pass.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator< (const optional& x, const optional& y); #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -27,11 +26,8 @@ constexpr bool operator < ( const X &lhs, const X &rhs ) { return lhs.i_ < rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 { typedef optional O; @@ -71,5 +67,4 @@ static_assert ( (o5 < o4), "" ); static_assert ( !(o5 < o5), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.relops/not_equal.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.relops/not_equal.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.relops/not_equal.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template constexpr bool operator!=(const optional& x, const optional& y); @@ -15,8 +16,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; struct X @@ -29,11 +28,8 @@ constexpr bool operator == ( const X &lhs, const X &rhs ) { return lhs.i_ == rhs.i_ ; } -#endif - int main() { -#if _LIBCPP_STD_VER > 11 { typedef X T; typedef optional O; @@ -75,5 +71,4 @@ static_assert ( !(o5 != o5), "" ); } -#endif } Index: libcxx/trunk/test/std/experimental/optional/optional.specalg/make_optional.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.specalg/make_optional.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.specalg/make_optional.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template @@ -21,7 +22,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::make_optional; @@ -46,5 +46,4 @@ assert(**opt == 3); assert(s == nullptr); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.specalg/swap.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.specalg/swap.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.specalg/swap.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // XFAIL: libcpp-no-exceptions // @@ -17,8 +18,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - using std::experimental::optional; class X @@ -62,12 +61,8 @@ friend void swap(Z& x, Z& y) {throw 6;} }; - -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 { optional opt1; optional opt2; @@ -302,5 +297,4 @@ assert(static_cast(opt2) == true); assert(*opt2 == 2); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_in_place_t.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_in_place_t.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_in_place_t.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // A program that necessitates the instantiation of template optional for @@ -16,13 +17,9 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::in_place_t; using std::experimental::in_place; optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_lvalue_ref.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_lvalue_ref.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_lvalue_ref.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // A program that necessitates the instantiation of template optional for a @@ -16,11 +17,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_nullopt_t.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_nullopt_t.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_nullopt_t.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // A program that necessitates the instantiation of template optional for @@ -16,13 +17,9 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_in_place_t.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_in_place_t.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_in_place_t.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // A program that necessitates the instantiation of template optional for @@ -16,13 +17,9 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::in_place_t; using std::experimental::in_place; optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_includes_initializer_list.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_includes_initializer_list.pass.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_includes_initializer_list.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // #include @@ -15,9 +16,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; std::initializer_list list; -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_lvalue_ref.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_lvalue_ref.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_lvalue_ref.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // A program that necessitates the instantiation of template optional for a @@ -16,11 +17,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_nullopt_t.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_nullopt_t.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_nullopt_t.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // A program that necessitates the instantiation of template optional for @@ -16,13 +17,9 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; using std::experimental::nullopt_t; using std::experimental::nullopt; optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp =================================================================== --- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp +++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // A program that necessitates the instantiation of template optional for a @@ -16,11 +17,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 using std::experimental::optional; optional opt; -#else -#error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/experimental/string.view/string.view.comparison/opeq.string_view.string.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/string.view/string.view.comparison/opeq.string_view.string.pass.cpp +++ libcxx/trunk/test/std/experimental/string.view/string.view.comparison/opeq.string_view.string.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template @@ -17,8 +18,6 @@ #include #include -#if _LIBCPP_STD_VER > 11 - template void test(const std::string &lhs, S rhs, bool x) @@ -49,6 +48,4 @@ test("abcdefghijklmnopqrst", S("abcdefghijklmnopqrst"), true); } } -#else -int main () {} -#endif + Index: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/includes.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/includes.pass.cpp +++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/includes.pass.cpp @@ -7,14 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include -#if _LIBCPP_STD_VER > 11 -# ifndef _LIBCPP_TYPE_TRAITS -# error " must include " -# endif +#ifndef _LIBCPP_TYPE_TRAITS +# error " must include " #endif int main() Index: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.rel.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.rel.pass.cpp +++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.rel.pass.cpp @@ -7,12 +7,11 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include -#if _LIBCPP_STD_VER > 11 - namespace ex = std::experimental; struct base_type {}; @@ -60,6 +59,4 @@ static_assert(ex::is_convertible_v == std::is_convertible::value, ""); } } -#else /* _LIBCPP_STD_VER <= 11 */ -int main() {} -#endif /* _LIBCPP_STD_VER > 11 */ + Index: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.cat.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.cat.pass.cpp +++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.cat.pass.cpp @@ -7,12 +7,11 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include -#if _LIBCPP_STD_VER > 11 - namespace ex = std::experimental; struct class_type {}; @@ -176,6 +175,4 @@ static_assert(ex::is_function_v == std::is_function::value, ""); } } -#else /* _LIBCPP_STD_VER <= 11 */ -int main() {} -#endif /* _LIBCPP_STD_VER > 11 */ + Index: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.comp.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.comp.pass.cpp +++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.comp.pass.cpp @@ -7,12 +7,11 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include -#if _LIBCPP_STD_VER > 11 - namespace ex = std::experimental; struct class_type {}; @@ -97,6 +96,4 @@ static_assert(ex::is_member_pointer_v == std::is_member_pointer::value, ""); } } -#else /* _LIBCPP_STD_VER <= 11 */ -int main() {} -#endif /* _LIBCPP_STD_VER > 11 */ + Index: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.pass.cpp +++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.pass.cpp @@ -7,12 +7,11 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include -#if _LIBCPP_STD_VER > 11 - namespace ex = std::experimental; struct non_literal_type { non_literal_type() {} }; @@ -484,6 +483,4 @@ static_assert(ex::has_virtual_destructor_v == std::has_virtual_destructor::value, ""); } } -#else /* _LIBCPP_STD_VER <= 11 */ -int main() {} -#endif /* _LIBCPP_STD_VER > 11 */ + Index: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.query.pass.cpp =================================================================== --- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.query.pass.cpp +++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.query.pass.cpp @@ -7,12 +7,11 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include -#if _LIBCPP_STD_VER > 11 - namespace ex = std::experimental; int main() @@ -61,6 +60,3 @@ static_assert(ex::extent_v == std::extent::value, ""); } } -#else /* _LIBCPP_STD_VER <= 11 */ -int main() {} -#endif /* _LIBCPP_STD_VER > 11 */ Index: libcxx/trunk/test/std/input.output/file.streams/c.files/gets.fail.cpp =================================================================== --- libcxx/trunk/test/std/input.output/file.streams/c.files/gets.fail.cpp +++ libcxx/trunk/test/std/input.output/file.streams/c.files/gets.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // test // gets @@ -15,9 +16,5 @@ int main() { -#if _LIBCPP_STD_VER > 11 (void) std::gets((char *) NULL); -#else -#error -#endif } Index: libcxx/trunk/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp =================================================================== --- libcxx/trunk/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp +++ libcxx/trunk/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // reverse_iterator @@ -19,8 +20,6 @@ #include "test_iterators.h" -#if _LIBCPP_STD_VER > 11 - template void test(It i) @@ -37,6 +36,4 @@ while ( b != e ) test ( b++ ); } -#else -int main () {} -#endif + Index: libcxx/trunk/test/std/language.support/support.dynamic/alloc.errors/new.badlength/bad_array_length.pass.cpp =================================================================== --- libcxx/trunk/test/std/language.support/support.dynamic/alloc.errors/new.badlength/bad_array_length.pass.cpp +++ libcxx/trunk/test/std/language.support/support.dynamic/alloc.errors/new.badlength/bad_array_length.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // test bad_array_length #include @@ -15,7 +16,6 @@ int main() { -#if __LIBCPP_STD_VER > 11 static_assert((std::is_base_of::value), "std::is_base_of::value"); static_assert(std::is_polymorphic::value, @@ -25,5 +25,4 @@ b2 = b; const char* w = b2.what(); assert(w); -#endif } Index: libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals.pass.cpp =================================================================== --- libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals.pass.cpp +++ libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include @@ -15,7 +16,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using namespace std::literals::complex_literals; // Make sure the types are right @@ -46,6 +46,4 @@ auto c2 = 3if; assert ( c1 == c2 ); } - -#endif } Index: libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.fail.cpp =================================================================== --- libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.fail.cpp +++ libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.fail.cpp @@ -7,14 +7,12 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 #include #include int main() { -#if _LIBCPP_STD_VER > 11 std::complex foo = 1.0if; // should fail w/conversion operator not found -#else -#error -#endif } Index: libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.pass.cpp =================================================================== --- libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.pass.cpp +++ libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include @@ -15,7 +16,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using namespace std::literals; { @@ -38,6 +38,4 @@ auto c2 = 3if; assert ( c1 == c2 ); } - -#endif } Index: libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals2.pass.cpp =================================================================== --- libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals2.pass.cpp +++ libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals2.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include @@ -15,7 +16,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using namespace std; { @@ -38,6 +38,4 @@ auto c2 = 3if; assert ( c1 == c2 ); } - -#endif } Index: libcxx/trunk/test/std/strings/basic.string.literals/literal.pass.cpp =================================================================== --- libcxx/trunk/test/std/strings/basic.string.literals/literal.pass.cpp +++ libcxx/trunk/test/std/strings/basic.string.literals/literal.pass.cpp @@ -7,12 +7,14 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 + #include #include int main() { -#if _LIBCPP_STD_VER > 11 using namespace std::literals::string_literals; static_assert ( std::is_same::value, "" ); @@ -43,5 +45,4 @@ Lfoo = L"ABC"s; assert(Lfoo == L"ABC"); assert(Lfoo == std::wstring ( L"ABC")); ufoo = u"ABC"s; assert(ufoo == u"ABC"); assert(ufoo == std::u16string( u"ABC")); Ufoo = U"ABC"s; assert(Ufoo == U"ABC"); assert(Ufoo == std::u32string( U"ABC")); -#endif } Index: libcxx/trunk/test/std/strings/basic.string.literals/literal1.fail.cpp =================================================================== --- libcxx/trunk/test/std/strings/basic.string.literals/literal1.fail.cpp +++ libcxx/trunk/test/std/strings/basic.string.literals/literal1.fail.cpp @@ -7,16 +7,15 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 + #include #include int main() { -#if _LIBCPP_STD_VER > 11 using std::string; string foo = ""s; // should fail w/conversion operator not found -#else -#error -#endif } Index: libcxx/trunk/test/std/strings/basic.string.literals/literal1.pass.cpp =================================================================== --- libcxx/trunk/test/std/strings/basic.string.literals/literal1.pass.cpp +++ libcxx/trunk/test/std/strings/basic.string.literals/literal1.pass.cpp @@ -7,14 +7,15 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 + #include #include int main() { -#if _LIBCPP_STD_VER > 11 using namespace std::literals; std::string foo = ""s; -#endif } Index: libcxx/trunk/test/std/strings/basic.string.literals/literal2.fail.cpp =================================================================== --- libcxx/trunk/test/std/strings/basic.string.literals/literal2.fail.cpp +++ libcxx/trunk/test/std/strings/basic.string.literals/literal2.fail.cpp @@ -7,14 +7,13 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 + #include #include int main() { -#if _LIBCPP_STD_VER > 11 std::string foo = ""s; // should fail w/conversion operator not found -#else -#error -#endif } Index: libcxx/trunk/test/std/strings/basic.string.literals/literal2.pass.cpp =================================================================== --- libcxx/trunk/test/std/strings/basic.string.literals/literal2.pass.cpp +++ libcxx/trunk/test/std/strings/basic.string.literals/literal2.pass.cpp @@ -7,14 +7,15 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 + #include #include int main() { -#if _LIBCPP_STD_VER > 11 using namespace std::literals::string_literals; std::string foo = ""s; -#endif } Index: libcxx/trunk/test/std/strings/basic.string.literals/literal3.pass.cpp =================================================================== --- libcxx/trunk/test/std/strings/basic.string.literals/literal3.pass.cpp +++ libcxx/trunk/test/std/strings/basic.string.literals/literal3.pass.cpp @@ -7,14 +7,15 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 + #include #include int main() { -#if _LIBCPP_STD_VER > 11 using namespace std; string foo = ""s; -#endif } Index: libcxx/trunk/test/std/strings/basic.string/string.iterators/iterators.pass.cpp =================================================================== --- libcxx/trunk/test/std/strings/basic.string/string.iterators/iterators.pass.cpp +++ libcxx/trunk/test/std/strings/basic.string/string.iterators/iterators.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 + // // iterator begin(); @@ -21,7 +23,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 { // N3644 testing typedef std::string C; C::iterator ii1{}, ii2{}; @@ -69,5 +70,4 @@ assert ( !(ii1 != ii2 )); assert ( !(ii1 != cii )); } -#endif } Index: libcxx/trunk/test/std/thread/futures/futures.promise/set_rvalue.pass.cpp =================================================================== --- libcxx/trunk/test/std/thread/futures/futures.promise/set_rvalue.pass.cpp +++ libcxx/trunk/test/std/thread/futures/futures.promise/set_rvalue.pass.cpp @@ -7,8 +7,7 @@ // //===----------------------------------------------------------------------===// // -// XFAIL: libcpp-no-exceptions -// UNSUPPORTED: libcpp-has-no-threads +// UNSUPPORTED: libcpp-has-no-threads, libcpp-no-exceptions // Index: libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_assign.fail.cpp =================================================================== --- libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_assign.fail.cpp +++ libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_assign.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template class shared_lock; @@ -15,20 +16,12 @@ #include -#if _LIBCPP_STD_VER > 11 - std::shared_timed_mutex m0; std::shared_timed_mutex m1; -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 std::shared_lock lk0(m0); std::shared_lock lk1(m1); lk1 = lk0; -#else -# error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_ctor.fail.cpp =================================================================== --- libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_ctor.fail.cpp +++ libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_ctor.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template class shared_lock; @@ -15,16 +16,10 @@ #include -#if _LIBCPP_STD_VER > 11 std::shared_timed_mutex m; -#endif // _LIBCPP_STD_VER > 11 int main() { -#if _LIBCPP_STD_VER > 11 std::shared_lock lk0(m); std::shared_lock lk = lk0; -#else -# error -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/assign.fail.cpp =================================================================== --- libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/assign.fail.cpp +++ libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/assign.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // class shared_timed_mutex; @@ -17,11 +18,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 std::shared_timed_mutex m0; std::shared_timed_mutex m1; m1 = m0; -#else -# error -#endif } Index: libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/copy.fail.cpp =================================================================== --- libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/copy.fail.cpp +++ libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/copy.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // class shared_timed_mutex; @@ -17,10 +18,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 std::shared_timed_mutex m0; std::shared_timed_mutex m1(m0); -#else -# error -#endif } Index: libcxx/trunk/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp +++ libcxx/trunk/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 #include #include @@ -22,9 +23,8 @@ }; -int main () { -#if _LIBCPP_STD_VER > 11 - +int main () +{ static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); @@ -55,7 +55,5 @@ static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); -#endif - return 0; - } +} Index: libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/bit_not.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/bit_not.pass.cpp +++ libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/bit_not.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // bit_not @@ -17,7 +18,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 typedef std::bit_not F; const F f = F(); static_assert((std::is_same::value), "" ); @@ -43,5 +43,4 @@ constexpr int bar = std::bit_not<> () (0xEA95) & 0xFFFF; static_assert ( bar == 0x156A, "" ); -#endif } Index: libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp +++ libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 #include #include @@ -23,8 +24,6 @@ int main () { -#if _LIBCPP_STD_VER > 11 - static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); @@ -45,7 +44,5 @@ static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); -#endif - return 0; - } +} Index: libcxx/trunk/test/std/utilities/function.objects/comparisons/transparent.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/comparisons/transparent.pass.cpp +++ libcxx/trunk/test/std/utilities/function.objects/comparisons/transparent.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 #include #include @@ -22,9 +23,8 @@ }; -int main () { -#if _LIBCPP_STD_VER > 11 - +int main () +{ static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); @@ -55,7 +55,5 @@ static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); -#endif - return 0; - } +} Index: libcxx/trunk/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp +++ libcxx/trunk/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 #include #include @@ -22,9 +23,8 @@ }; -int main () { -#if _LIBCPP_STD_VER > 11 - +int main () +{ static_assert ( !is_transparent>::value, "" ); static_assert ( !is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); @@ -40,7 +40,5 @@ static_assert ( is_transparent>::value, "" ); static_assert ( is_transparent>::value, "" ); -#endif - return 0; - } +} Index: libcxx/trunk/test/std/utilities/intseq/intseq.general/integer_seq.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/intseq/intseq.general/integer_seq.pass.cpp +++ libcxx/trunk/test/std/utilities/intseq/intseq.general/integer_seq.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // class make_integer_sequence @@ -16,19 +17,13 @@ #include #include -#if _LIBCPP_STD_VER > 11 - template auto extract ( const AtContainer &t, const std::integer_sequence ) -> decltype ( std::make_tuple ( std::get(t)... )) { return std::make_tuple ( std::get(t)... ); } -#endif // _LIBCPP_STD_VER > 11 - int main() { -#if _LIBCPP_STD_VER > 11 - // Make a couple of sequences using int3 = std::make_integer_sequence; // generates int: 0,1,2 using size7 = std::make_integer_sequence; // generates size_t: 0,1,2,3,4,5,6 @@ -82,5 +77,4 @@ auto tsizemix = extract ( tup, sizemix ()); static_assert ( std::tuple_size::value == sizemix::size (), "tsizemix size wrong"); assert ( tsizemix == std::make_tuple ( 11, 11, 12, 13, 15 )); -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp +++ libcxx/trunk/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // // template @@ -24,8 +25,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 - // Make a few of sequences using int3 = std::integer_sequence; using size1 = std::integer_sequence; @@ -44,6 +43,4 @@ static_assert ( std::is_same::value, "bool0 type wrong" ); static_assert ( bool0::size() == 0, "bool0 size wrong" ); - -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.array.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.array.pass.cpp +++ libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.array.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 #include #include #include @@ -23,7 +24,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 { auto p1 = std::make_unique(5); for ( int i = 0; i < 5; ++i ) @@ -41,5 +41,4 @@ for ( int i = 0; i < 7; ++i ) assert ( p3[i].get () == 3 ); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.single.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.single.pass.cpp +++ libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.single.pass.cpp @@ -7,13 +7,13 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 #include #include #include int main() { -#if _LIBCPP_STD_VER > 11 { std::unique_ptr p1 = std::make_unique(1); assert ( *p1 == 1 ); @@ -29,5 +29,4 @@ p2 = std::make_unique ( 6, 'z' ); assert ( *p2 == "zzzzzz" ); } -#endif // _LIBCPP_STD_VER > 11 } Index: libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp +++ libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // type_traits // enable_if @@ -15,9 +16,5 @@ int main() { -#if _LIBCPP_STD_VER > 11 typedef std::enable_if_t A; -#else - static_assert ( false, "" ); -#endif } Index: libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp +++ libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // type_traits // is_final @@ -14,8 +15,6 @@ #include #include "test_macros.h" -#if _LIBCPP_STD_VER > 11 - struct P final { }; union U1 { }; union U2 final { }; @@ -61,6 +60,3 @@ test_is_final (); test_is_not_final(); } -#else -int main () {} -#endif Index: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals.pass.cpp +++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include @@ -15,7 +16,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using namespace std::literals::chrono_literals; // Make sure the types are right @@ -55,5 +55,4 @@ assert ( ns == std::chrono::nanoseconds(645)); auto ns2 = 645.ns; assert ( ns == ns2 ); -#endif } Index: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.fail.cpp +++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.fail.cpp @@ -7,15 +7,13 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 #include #include int main() { -#if _LIBCPP_STD_VER > 11 std::chrono::hours h = 4h; // should fail w/conversion operator not found -#else -#error -#endif } Index: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp +++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp @@ -7,12 +7,13 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 #include #include int main() { -#if _LIBCPP_STD_VER > 11 using namespace std::chrono; hours h = 4h; @@ -44,5 +45,4 @@ assert ( ns == nanoseconds(645)); auto ns2 = 645.ns; assert ( ns == ns2 ); -#endif } Index: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.fail.cpp +++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.fail.cpp @@ -7,16 +7,14 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03, c++11 #include #include int main() { -#if _LIBCPP_STD_VER > 11 using std::chrono::hours; hours foo = 4h; // should fail w/conversion operator not found -#else -#error -#endif } Index: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.pass.cpp +++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // #include @@ -15,7 +16,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 using namespace std::literals; std::chrono::hours h = 4h; @@ -47,5 +47,4 @@ assert ( ns == std::chrono::nanoseconds(645)); auto ns2 = 645.ns; assert ( ns == ns2 ); -#endif } Index: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type1.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type1.fail.cpp +++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type1.fail.cpp @@ -17,11 +17,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 typedef std::complex cf; auto t1 = std::make_tuple ( 42, "Hi" ); assert (( std::get(t1) == cf {1,2} )); // no such type -#else -#error -#endif } Index: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type2.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type2.fail.cpp +++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type2.fail.cpp @@ -17,11 +17,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 typedef std::complex cf; auto t1 = std::make_tuple ( 42, 21, "Hi", { 1,2 } ); assert ( std::get(t1) == 42 ); // two ints here -#else -#error -#endif } Index: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type3.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type3.fail.cpp +++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type3.fail.cpp @@ -17,11 +17,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 typedef std::complex cf; auto t1 = std::make_tuple ( 42, 21, "Hi", { 1,2 } ); assert ( std::get(t1) == 42 ); // two ints here (one at the end) -#else -#error -#endif } Index: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type4.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type4.fail.cpp +++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type4.fail.cpp @@ -17,11 +17,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 typedef std::unique_ptr upint; std::tuple t(upint(new int(4))); upint p = std::get(t); -#else -#error -#endif } Index: libcxx/trunk/test/std/utilities/utility/exchange/exchange.pass.cpp =================================================================== --- libcxx/trunk/test/std/utilities/utility/exchange/exchange.pass.cpp +++ libcxx/trunk/test/std/utilities/utility/exchange/exchange.pass.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 // utilities // exchange @@ -17,7 +18,6 @@ int main() { -#if _LIBCPP_STD_VER > 11 { int v = 12; assert ( std::exchange ( v, 23 ) == 12 ); @@ -53,6 +53,4 @@ assert ( std::exchange ( s3, "" ) == s2 ); assert ( s3.size () == 0 ); } - -#endif } Index: libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type1.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type1.fail.cpp +++ libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type1.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 #include #include @@ -14,11 +15,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 typedef std::complex cf; auto t1 = std::make_pair ( 42, 3.4 ); assert (( std::get(t1) == cf {1,2} )); // no such type -#else -#error -#endif } Index: libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type2.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type2.fail.cpp +++ libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type2.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 #include #include @@ -14,11 +15,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 typedef std::complex cf; auto t1 = std::make_pair ( 42, 43 ); assert ( std::get(t1) == 42 ); // two ints -#else -#error -#endif } Index: libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type3.fail.cpp =================================================================== --- libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type3.fail.cpp +++ libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type3.fail.cpp @@ -7,6 +7,7 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03, c++11 #include #include @@ -14,11 +15,7 @@ int main() { -#if _LIBCPP_STD_VER > 11 typedef std::unique_ptr upint; std::pair t(upint(new int(4)), 23); upint p = std::get(t); -#else -#error -#endif }