[libcxx] r271108 - [libcxx] Improve tests to use the UNSUPPORTED lit directive
Asiri Rathnayake via cfe-commits
cfe-commits at lists.llvm.org
Sat May 28 01:57:38 PDT 2016
Author: asiri
Date: Sat May 28 03:57:35 2016
New Revision: 271108
URL: http://llvm.org/viewvc/llvm-project?rev=271108&view=rev
Log:
[libcxx] Improve tests to use the UNSUPPORTED lit directive
Quite a few libcxx tests seem to follow the format:
#if _LIBCPP_STD_VER > X
// Do test.
#else
// Empty test.
#endif
We should instead use the UNSUPPORTED lit directive to exclude the test on
earlier C++ standards. This gives us a more accurate number of test passes
for those standards and avoids unnecessary conflicts with other lit
directives on the same tests.
Reviewers: bcraig, ericwf, mclow.lists
Differential revision: http://reviews.llvm.org/D20730
Modified:
libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/alloc.pass.cpp
libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.mutate/default.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/begin_end.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/indexing.pass.cpp
libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp
libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.zero/default.pass.cpp
libcxx/trunk/test/libcxx/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp
libcxx/trunk/test/libcxx/experimental/utilities/syserror/header.system_error.synop/includes.pass.cpp
libcxx/trunk/test/libcxx/experimental/utilities/time/header.chrono.synop/includes.pass.cpp
libcxx/trunk/test/libcxx/experimental/utilities/tuple/header.tuple.synop/includes.pass.cpp
libcxx/trunk/test/std/containers/sequences/list/db_iterators_9.pass.cpp
libcxx/trunk/test/std/containers/sequences/vector.bool/emplace.pass.cpp
libcxx/trunk/test/std/containers/sequences/vector.bool/emplace_back.pass.cpp
libcxx/trunk/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/default_ctor.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/derive.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/greater.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/less_equal.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/not_equal.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.hash/hash.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.inplace/in_place_t.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.nullops/equal.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.nullops/greater.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.nullops/greater_equal.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.nullops/less_than.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.nullops/not_equal.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.nullopt/nullopt_t.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/copy.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_initializer_list.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/nullopt_t.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/default.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/move.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.dtor/dtor.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/dereference.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/op_arrow.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/value.pass.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.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_const.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_const_void.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_noexcept_destructible.fail.cpp
libcxx/trunk/test/std/experimental/optional/optional.object/optional_void.fail.cpp
libcxx/trunk/test/std/experimental/optional/optional.object/types.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.relops/equal.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.relops/greater_than.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.relops/less_equal.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.relops/less_than.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.relops/not_equal.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.specalg/make_optional.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.specalg/swap.pass.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_lvalue_ref.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_in_place_t.fail.cpp
libcxx/trunk/test/std/experimental/optional/optional.syn/optional_includes_initializer_list.pass.cpp
libcxx/trunk/test/std/experimental/optional/optional.syn/optional_lvalue_ref.fail.cpp
libcxx/trunk/test/std/experimental/optional/optional.syn/optional_nullopt_t.fail.cpp
libcxx/trunk/test/std/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp
libcxx/trunk/test/std/experimental/string.view/string.view.comparison/opeq.string_view.string.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/meta.rel.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.comp.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.query.pass.cpp
libcxx/trunk/test/std/input.output/file.streams/c.files/gets.fail.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/language.support/support.dynamic/alloc.errors/new.badlength/bad_array_length.pass.cpp
libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals.pass.cpp
libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.fail.cpp
libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.pass.cpp
libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals2.pass.cpp
libcxx/trunk/test/std/strings/basic.string.literals/literal.pass.cpp
libcxx/trunk/test/std/strings/basic.string.literals/literal1.fail.cpp
libcxx/trunk/test/std/strings/basic.string.literals/literal1.pass.cpp
libcxx/trunk/test/std/strings/basic.string.literals/literal2.fail.cpp
libcxx/trunk/test/std/strings/basic.string.literals/literal2.pass.cpp
libcxx/trunk/test/std/strings/basic.string.literals/literal3.pass.cpp
libcxx/trunk/test/std/strings/basic.string/string.iterators/iterators.pass.cpp
libcxx/trunk/test/std/thread/futures/futures.promise/set_rvalue.pass.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_ctor.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/copy.fail.cpp
libcxx/trunk/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp
libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/bit_not.pass.cpp
libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp
libcxx/trunk/test/std/utilities/function.objects/comparisons/transparent.pass.cpp
libcxx/trunk/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp
libcxx/trunk/test/std/utilities/intseq/intseq.general/integer_seq.pass.cpp
libcxx/trunk/test/std/utilities/intseq/intseq.intseq/integer_seq.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.single.pass.cpp
libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp
libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_final.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/literals1.fail.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/literals2.fail.cpp
libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.pass.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.type2.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.type4.fail.cpp
libcxx/trunk/test/std/utilities/utility/exchange/exchange.pass.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.type2.fail.cpp
libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type3.fail.cpp
Modified: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/alloc.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/alloc.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/alloc.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/alloc.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// dynarray.cons
// template <class Alloc>
@@ -23,8 +24,6 @@
#include <__config>
-#if _LIBCPP_STD_VER > 11
-
#include <experimental/dynarray>
#include <cassert>
@@ -81,6 +80,4 @@ int main()
// 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
+
Modified: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.mutate/default.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.mutate/default.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.mutate/default.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.mutate/default.pass.cpp Sat May 28 03:57:35 2016
@@ -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 <experimental/dynarray>
#include <cassert>
@@ -43,6 +42,4 @@ int main()
test<std::complex<double>> ( std::complex<double> ( 14, 0 ));
test<std::string> ( "fourteen" );
}
-#else
-int main() {}
-#endif
+
Modified: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/at.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/at.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/at.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/at.pass.cpp Sat May 28 03:57:35 2016
@@ -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 <experimental/dynarray>
#include <cassert>
@@ -90,6 +89,4 @@ int main()
test<std::complex<double>> ( {} );
test<std::string> ( {} );
}
-#else
-int main() {}
-#endif
+
Modified: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/begin_end.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/begin_end.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/begin_end.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/begin_end.pass.cpp Sat May 28 03:57:35 2016
@@ -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 <experimental/dynarray>
#include <cassert>
@@ -103,6 +102,4 @@ int main()
test<std::complex<double>> ( std::complex<double> ( 14, 0 ));
test<std::string> ( "fourteen" );
}
-#else
-int main() {}
-#endif
+
Modified: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/capacity.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/capacity.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/capacity.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/capacity.pass.cpp Sat May 28 03:57:35 2016
@@ -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 <experimental/dynarray>
#include <cassert>
@@ -52,6 +51,4 @@ int main()
test<std::complex<double>> ( {} );
test<std::string> ( {} );
}
-#else
-int main() {}
-#endif
+
Modified: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/indexing.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/indexing.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/indexing.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.overview/indexing.pass.cpp Sat May 28 03:57:35 2016
@@ -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 <experimental/dynarray>
#include <cassert>
@@ -66,6 +65,4 @@ int main()
test<std::complex<double>> ( {} );
test<std::string> ( {} );
}
-#else
-int main() {}
-#endif
+
Modified: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.traits/default.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// dynarray.data
// template <class Type, class Alloc>
@@ -15,8 +16,6 @@
#include <__config>
-#if _LIBCPP_STD_VER > 11
-
#include <experimental/dynarray>
#include "test_allocator.h"
@@ -26,6 +25,4 @@ int main()
{
static_assert ( std::uses_allocator<dynarray<int>, test_allocator<int>>::value, "" );
}
-#else
-int main() {}
-#endif
+
Modified: libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.zero/default.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.zero/default.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.zero/default.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/containers/sequences/dynarray/dynarray.zero/default.pass.cpp Sat May 28 03:57:35 2016
@@ -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 <experimental/dynarray>
#include <cassert>
@@ -45,6 +44,4 @@ int main()
test<std::complex<double>> ();
test<std::string> ();
}
-#else
-int main() {}
-#endif
+
Modified: libcxx/trunk/test/libcxx/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp Sat May 28 03:57:35 2016
@@ -7,16 +7,15 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/ratio>
// Test that <ratio> is included.
#include <experimental/ratio>
-#if _LIBCPP_STD_VER > 11
-# ifndef _LIBCPP_RATIO
-# error " <experimental/ratio> must include <ratio>"
-# endif
+#ifndef _LIBCPP_RATIO
+# error " <experimental/ratio> must include <ratio>"
#endif
int main()
Modified: libcxx/trunk/test/libcxx/experimental/utilities/syserror/header.system_error.synop/includes.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/utilities/syserror/header.system_error.synop/includes.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/utilities/syserror/header.system_error.synop/includes.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/utilities/syserror/header.system_error.synop/includes.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/system_error>
#include <experimental/system_error>
-#if _LIBCPP_STD_VER > 11
-# ifndef _LIBCPP_SYSTEM_ERROR
-# error "<experimental/system_error> must include <system_error>"
-# endif
+#ifndef _LIBCPP_SYSTEM_ERROR
+# error "<experimental/system_error> must include <system_error>"
#endif
int main()
Modified: libcxx/trunk/test/libcxx/experimental/utilities/time/header.chrono.synop/includes.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/utilities/time/header.chrono.synop/includes.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/utilities/time/header.chrono.synop/includes.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/utilities/time/header.chrono.synop/includes.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/chrono>
#include <experimental/chrono>
-#if _LIBCPP_STD_VER > 11
-# ifndef _LIBCPP_CHRONO
-# error "<experimental/chrono> must include <chrono>"
-# endif
+#ifndef _LIBCPP_CHRONO
+# error "<experimental/chrono> must include <chrono>"
#endif
int main()
Modified: libcxx/trunk/test/libcxx/experimental/utilities/tuple/header.tuple.synop/includes.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/experimental/utilities/tuple/header.tuple.synop/includes.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/experimental/utilities/tuple/header.tuple.synop/includes.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/experimental/utilities/tuple/header.tuple.synop/includes.pass.cpp Sat May 28 03:57:35 2016
@@ -7,15 +7,14 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/tuple>
#include <experimental/tuple>
int main()
{
-#if _LIBCPP_STD_VER > 11
-# ifndef _LIBCPP_TUPLE
-# error "<experimental/tuple> must include <tuple>"
-# endif
-#endif /* _LIBCPP_STD_VER > 11 */
+#ifndef _LIBCPP_TUPLE
+# error "<experimental/tuple> must include <tuple>"
+#endif
}
Modified: libcxx/trunk/test/std/containers/sequences/list/db_iterators_9.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/list/db_iterators_9.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/list/db_iterators_9.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/list/db_iterators_9.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <list>
// Operations on "NULL" iterators
@@ -25,7 +26,6 @@ struct S { int val; };
int main()
{
-#if _LIBCPP_STD_VER > 11
{
unsigned lib_asserts;
@@ -55,7 +55,6 @@ int main()
try { (void) ci->val; } catch (int) { ++lib_asserts; }
assert(lib_asserts == 4);
}
-#endif
}
#else
Modified: libcxx/trunk/test/std/containers/sequences/vector.bool/emplace.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/vector.bool/emplace.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/vector.bool/emplace.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/vector.bool/emplace.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <vector>
// vector<bool>
@@ -18,7 +19,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
{
typedef std::vector<bool> C;
C c;
@@ -64,5 +64,4 @@ int main()
assert(c[1] == true);
assert(c.back() == true);
}
-#endif
}
Modified: libcxx/trunk/test/std/containers/sequences/vector.bool/emplace_back.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/vector.bool/emplace_back.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/vector.bool/emplace_back.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/vector.bool/emplace_back.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <vector>
// vector.bool
@@ -19,7 +20,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
{
typedef std::vector<bool> C;
C c;
@@ -53,5 +53,4 @@ int main()
assert(c[1] == true);
assert(c.back() == true);
}
-#endif
}
Modified: libcxx/trunk/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/default_ctor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/default_ctor.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/default_ctor.pass.cpp (original)
+++ libcxx/trunk/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.nonvirtuals/default_ctor.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <system_error>
// class error_category
@@ -18,8 +19,6 @@
#include <string>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
class test1
: public std::error_category
{
@@ -29,12 +28,8 @@ public:
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<test1>::value,
"error_category() must exist and be noexcept");
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/default.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/default.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/default.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/default.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
+
// <optional>
// 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
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/derive.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/derive.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/derive.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.bad_optional_access/derive.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
+
// <optional>
// 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<std::logic_error, bad_optional_access>::value, "");
static_assert(std::is_convertible<bad_optional_access*, std::logic_error*>::value, "");
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator==(const optional<T>& x, const T& v);
@@ -14,8 +15,6 @@
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -28,11 +27,8 @@ struct X
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<T> O;
@@ -54,5 +50,4 @@ int main()
static_assert ( (T(2) == o3), "" );
static_assert ( (val == o3), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator>(const optional<T>& x, const T& v);
@@ -14,8 +15,6 @@
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -28,12 +27,8 @@ struct X
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<T> O;
@@ -57,5 +52,4 @@ int main()
static_assert ( !(val > o3), "" ); // equal
static_assert ( (T(3) > o3), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater_equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater_equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater_equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/greater_equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator>=(const optional<T>& x, const T& v);
@@ -14,8 +15,6 @@
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -28,12 +27,8 @@ struct X
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<T> O;
@@ -57,5 +52,4 @@ int main()
static_assert ( (val >= o3), "" ); // equal
static_assert ( (T(3) >= o3), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator<=(const optional<T>& x, const T& v);
@@ -14,8 +15,6 @@
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -28,12 +27,8 @@ struct X
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<T> O;
@@ -57,5 +52,4 @@ int main()
static_assert ( (val <= o3), "" ); // equal
static_assert ( !(T(3) <= o3), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_than.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_than.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_than.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/less_than.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator<(const optional<T>& x, const T& v);
@@ -14,8 +15,6 @@
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -28,12 +27,8 @@ struct X
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<T> O;
@@ -57,5 +52,4 @@ int main()
static_assert ( !(val < o3), "" ); // equal
static_assert ( !(T(3) < o3), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/not_equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/not_equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/not_equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.comp_with_t/not_equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator!=(const optional<T>& x, const T& v);
@@ -14,8 +15,6 @@
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -28,11 +27,8 @@ struct X
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<T> O;
@@ -54,5 +50,4 @@ int main()
static_assert ( !(T(2) != o3), "" );
static_assert ( !(val != o3), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.hash/hash.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.hash/hash.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.hash/hash.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.hash/hash.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> struct hash<optional<T>>;
@@ -19,7 +20,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
using std::experimental::optional;
{
@@ -43,5 +43,4 @@ int main()
opt = std::unique_ptr<int>(new int(3));
assert(std::hash<optional<T>>{}(opt) == std::hash<T>{}(*opt));
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.inplace/in_place_t.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.inplace/in_place_t.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.inplace/in_place_t.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.inplace/in_place_t.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// struct in_place_t{};
@@ -15,8 +16,6 @@
#include <experimental/optional>
#include <type_traits>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
using std::experimental::in_place_t;
using std::experimental::in_place;
@@ -28,15 +27,10 @@ test(const in_place_t&)
return 3;
}
-#endif
-
int main()
{
-#if _LIBCPP_STD_VER > 11
-
static_assert((std::is_class<in_place_t>::value), "");
static_assert((std::is_empty<in_place_t>::value), "");
static_assert(test(in_place) == 3, "");
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.nullops/equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.nullops/equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.nullops/equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.nullops/equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
-
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator==(const optional<T>& 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 @@ int main()
static_assert (noexcept(nullopt == o1), "");
static_assert (noexcept(o1 == nullopt), "");
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.nullops/greater.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.nullops/greater.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.nullops/greater.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.nullops/greater.pass.cpp Sat May 28 03:57:35 2016
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
-
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator>(const optional<T>& 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 @@ int main()
static_assert (noexcept(nullopt > o1), "");
static_assert (noexcept(o1 > nullopt), "");
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.nullops/greater_equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.nullops/greater_equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.nullops/greater_equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.nullops/greater_equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
-
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator>=(const optional<T>& 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 @@ int main()
static_assert (noexcept(nullopt >= o1), "");
static_assert (noexcept(o1 >= nullopt), "");
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.nullops/less_than.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.nullops/less_than.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.nullops/less_than.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.nullops/less_than.pass.cpp Sat May 28 03:57:35 2016
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
-
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator<(const optional<T>& 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 @@ int main()
static_assert (noexcept(nullopt < o1), "");
static_assert (noexcept(o1 < nullopt), "");
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.nullops/not_equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.nullops/not_equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.nullops/not_equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.nullops/not_equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
-
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator!=(const optional<T>& 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 @@ int main()
static_assert (noexcept(nullopt != o1), "");
static_assert (noexcept(o1 != nullopt), "");
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.nullopt/nullopt_t.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.nullopt/nullopt_t.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.nullopt/nullopt_t.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.nullopt/nullopt_t.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// struct nullopt_t{see below};
@@ -15,8 +16,6 @@
#include <experimental/optional>
#include <type_traits>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
using std::experimental::nullopt_t;
using std::experimental::nullopt;
@@ -28,16 +27,12 @@ test(const nullopt_t&)
return 3;
}
-#endif
-
int main()
{
-#if _LIBCPP_STD_VER > 11
static_assert((std::is_class<nullopt_t>::value), "");
static_assert((std::is_empty<nullopt_t>::value), "");
static_assert((std::is_literal_type<nullopt_t>::value), "");
static_assert((!std::is_default_constructible<nullopt_t>::value), "");
static_assert(test(nullopt) == 3, "");
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/assign_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/assign_value.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/assign_value.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/assign_value.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class U> optional<T>& operator=(U&& v);
@@ -16,19 +17,14 @@
#include <cassert>
#include <memory>
-#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<optional<int>, int>::value, "");
static_assert(std::is_assignable<optional<int>, int&>::value, "");
static_assert(std::is_assignable<optional<int>&, int>::value, "");
@@ -68,5 +64,4 @@ int main()
assert(static_cast<bool>(opt) == true);
assert(**opt == 3);
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/copy.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/copy.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/copy.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/copy.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -16,8 +17,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -34,11 +33,8 @@ struct X
bool X::throw_now = false;
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
optional<int> opt;
constexpr optional<int> opt2;
@@ -87,5 +83,4 @@ int main()
assert(static_cast<bool>(opt) == false);
}
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -17,8 +18,6 @@
#include <cassert>
#include <memory>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
class X
@@ -55,11 +54,8 @@ public:
bool Z::dtor_called = false;
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
optional<int> opt;
opt.emplace();
@@ -145,5 +141,4 @@ int main()
assert(Z::dtor_called == true);
}
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace_initializer_list.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace_initializer_list.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace_initializer_list.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/emplace_initializer_list.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -18,8 +19,6 @@
#include <cassert>
#include <vector>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
class X
@@ -70,11 +69,8 @@ public:
bool Z::dtor_called = false;
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
X x;
{
@@ -113,5 +109,4 @@ int main()
assert(Z::dtor_called == true);
}
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/move.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/move.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/move.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/move.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -18,8 +19,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -42,11 +41,8 @@ struct Y {};
bool X::throw_now = false;
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
static_assert(std::is_nothrow_move_assignable<optional<int>>::value, "");
optional<int> opt;
@@ -100,5 +96,4 @@ int main()
{
static_assert(std::is_nothrow_move_assignable<optional<Y>>::value, "");
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/nullopt_t.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/nullopt_t.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/nullopt_t.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.assign/nullopt_t.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// optional<T>& operator=(nullopt_t) noexcept;
@@ -15,8 +16,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
using std::experimental::nullopt_t;
using std::experimental::nullopt;
@@ -29,11 +28,8 @@ struct X
bool X::dtor_called = false;
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
optional<int> opt;
static_assert(noexcept(opt = nullopt) == true, "");
@@ -63,5 +59,4 @@ int main()
assert(static_cast<bool>(opt) == false);
}
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/copy.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/copy.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/copy.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/copy.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -16,8 +17,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
template <class T>
@@ -76,11 +75,8 @@ public:
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
typedef int T;
optional<T> rhs;
@@ -121,5 +117,4 @@ int main()
optional<T> rhs(Z(3));
test(rhs, true);
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/default.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/default.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/default.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/default.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// constexpr optional() noexcept;
@@ -15,8 +16,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
template <class Opt>
@@ -55,13 +54,9 @@ struct X
X();
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
test_constexpr<optional<int>>();
test_constexpr<optional<int*>>();
test<optional<X>>();
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/initializer_list.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/initializer_list.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/initializer_list.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/initializer_list.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -19,8 +20,6 @@
#include <vector>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
using std::experimental::in_place_t;
using std::experimental::in_place;
@@ -67,12 +66,8 @@ public:
{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<X, std::initializer_list<int>&>::value, "");
static_assert(!std::is_constructible<optional<X>, std::initializer_list<int>&>::value, "");
@@ -123,5 +118,4 @@ int main()
};
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/move.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/move.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/move.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/move.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -16,8 +17,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
template <class T>
@@ -75,12 +74,8 @@ public:
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<T> rhs;
@@ -121,5 +116,4 @@ int main()
optional<T> rhs(Z(3));
test(rhs, true);
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.ctor/nullopt_t.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// constexpr optional(nullopt_t) noexcept;
@@ -15,8 +16,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
using std::experimental::nullopt_t;
using std::experimental::nullopt;
@@ -56,13 +55,9 @@ struct X
X();
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
test_constexpr<optional<int>>();
test_constexpr<optional<int*>>();
test<optional<X>>();
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.dtor/dtor.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// ~optional();
@@ -15,8 +16,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
class X
@@ -29,11 +28,8 @@ public:
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<T>::value, "");
@@ -55,5 +51,4 @@ int main()
}
assert(X::dtor_called == true);
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/bool.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/bool.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/bool.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/bool.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// constexpr explicit optional<T>::operator bool() const noexcept;
@@ -17,7 +18,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
using std::experimental::optional;
{
@@ -28,5 +28,4 @@ int main()
constexpr optional<int> opt(0);
static_assert(opt, "");
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// T& optional<T>::operator*();
@@ -19,8 +20,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -29,11 +28,8 @@ struct X
int test() {return 4;}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
optional<X> opt(X{});
assert((*opt).test() == 4);
@@ -45,5 +41,4 @@ int main()
assert(false);
}
#endif // _LIBCPP_DEBUG
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference_const.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference_const.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference_const.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/dereference_const.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// constexpr const T& optional<T>::operator*() const;
@@ -19,8 +20,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -33,11 +32,8 @@ struct Y
int test() const {return 2;}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
constexpr optional<X> opt(X{});
static_assert((*opt).test() == 3, "");
@@ -53,5 +49,4 @@ int main()
assert(false);
}
#endif // _LIBCPP_DEBUG
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// constexpr T* optional<T>::operator->();
@@ -19,8 +20,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -28,11 +27,8 @@ struct X
constexpr int test() const {return 3;}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
constexpr optional<X> opt(X{});
static_assert(opt->test() == 3, "");
@@ -44,5 +40,4 @@ int main()
assert(false);
}
#endif // _LIBCPP_DEBUG
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow_const.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow_const.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow_const.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/op_arrow_const.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// constexpr const T* optional<T>::operator->() const;
@@ -19,8 +20,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -39,11 +38,8 @@ struct Z
constexpr int test() const {return 1;}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
constexpr optional<X> opt(X{});
static_assert(opt->test() == 3, "");
@@ -63,5 +59,4 @@ int main()
assert(false);
}
#endif // _LIBCPP_DEBUG
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -16,8 +17,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
using std::experimental::bad_optional_access;
@@ -29,11 +28,8 @@ struct X
int test() {return 4;}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
optional<X> opt;
opt.emplace();
@@ -50,5 +46,4 @@ int main()
{
}
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// constexpr const T& optional<T>::value() const;
@@ -15,8 +16,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -25,16 +24,10 @@ struct X
int test() {return 4;}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
constexpr optional<X> opt;
static_assert(opt.value().test() == 3, "");
}
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_const.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -16,8 +17,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
using std::experimental::in_place_t;
using std::experimental::in_place;
@@ -31,11 +30,8 @@ struct X
int test() {return 4;}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
constexpr optional<X> opt(in_place);
static_assert(opt.value().test() == 3, "");
@@ -55,5 +51,4 @@ int main()
{
}
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class U> T optional<T>::value_or(U&& v) &&;
@@ -15,8 +16,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
using std::experimental::in_place_t;
using std::experimental::in_place;
@@ -40,11 +39,8 @@ struct X
{return x.i_ == y.i_;}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
optional<X> opt(in_place, 2);
Y y(3);
@@ -67,5 +63,4 @@ int main()
assert(std::move(opt).value_or(Y(3)) == 4);
assert(!opt);
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or_const.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or_const.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or_const.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.observe/value_or_const.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class U> constexpr T optional<T>::value_or(U&& v) const&;
@@ -15,8 +16,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct Y
@@ -37,11 +36,8 @@ struct X
{return x.i_ == y.i_;}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
constexpr optional<X> opt(2);
constexpr Y y(3);
@@ -78,5 +74,4 @@ int main()
const optional<X> opt;
assert(opt.value_or(Y(3)) == 4);
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.swap/swap.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.swap/swap.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.swap/swap.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional.object.swap/swap.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -18,8 +19,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
class X
@@ -63,12 +62,8 @@ public:
friend void swap(Z& x, Z& y) {throw 6;}
};
-
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
optional<int> opt1;
optional<int> opt2;
@@ -303,5 +298,4 @@ int main()
assert(static_cast<bool>(opt2) == true);
assert(*opt2 == 2);
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional_const_void.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional_const_void.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional_const_void.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional_const_void.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// 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<const void> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_destructible.fail.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// T shall be an object type and shall satisfy the requirements of Destructible
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -23,13 +22,7 @@ private:
~X() {}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
optional<X> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_noexcept_destructible.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_noexcept_destructible.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_noexcept_destructible.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional_not_noexcept_destructible.fail.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// T shall be an object type and shall satisfy the requirements of Destructible
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -22,13 +21,7 @@ struct X
~X() noexcept(false) {}
};
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
optional<X> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/optional_void.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/optional_void.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/optional_void.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/optional_void.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// 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<void> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.object/types.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.object/types.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.object/types.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.object/types.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T>
@@ -19,8 +20,6 @@
#include <experimental/optional>
#include <type_traits>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
template <class Opt, class T>
@@ -30,14 +29,10 @@ test()
static_assert(std::is_same<typename Opt::value_type, T>::value, "");
}
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
test<optional<int>, int>();
test<optional<const int>, const int>();
test<optional<double>, double>();
test<optional<const double>, const double>();
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.relops/equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.relops/equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.relops/equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.relops/equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator==(const optional<T>& x, const optional<T>& y);
@@ -15,8 +16,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -29,11 +28,8 @@ struct X
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<T> O;
@@ -75,5 +71,4 @@ int main()
static_assert ( o5 == o5 , "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.relops/greater_equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator>= (const optional<T>& x, const optional<T>& y);
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -27,11 +26,8 @@ struct X
constexpr bool operator < ( const X &lhs, const X &rhs )
{ return lhs.i_ < rhs.i_ ; }
-#endif
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
typedef optional<X> O;
@@ -71,5 +67,4 @@ int main()
static_assert ( !(o5 >= o4), "" );
static_assert ( (o5 >= o5), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.relops/greater_than.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.relops/greater_than.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.relops/greater_than.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.relops/greater_than.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator> (const optional<T>& x, const optional<T>& y);
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -27,11 +26,8 @@ struct X
constexpr bool operator < ( const X &lhs, const X &rhs )
{ return lhs.i_ < rhs.i_ ; }
-#endif
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
typedef optional<X> O;
@@ -71,5 +67,4 @@ int main()
static_assert ( !(o5 > o4), "" );
static_assert ( !(o5 > o5), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.relops/less_equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.relops/less_equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.relops/less_equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.relops/less_equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator<= (const optional<T>& x, const optional<T>& y);
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -27,11 +26,8 @@ struct X
constexpr bool operator < ( const X &lhs, const X &rhs )
{ return lhs.i_ < rhs.i_ ; }
-#endif
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
typedef optional<X> O;
@@ -71,5 +67,4 @@ int main()
static_assert ( (o5 <= o4), "" );
static_assert ( (o5 <= o5), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.relops/less_than.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.relops/less_than.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.relops/less_than.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.relops/less_than.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator< (const optional<T>& x, const optional<T>& y);
#include <experimental/optional>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -27,11 +26,8 @@ struct X
constexpr bool operator < ( const X &lhs, const X &rhs )
{ return lhs.i_ < rhs.i_ ; }
-#endif
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
typedef optional<X> O;
@@ -71,5 +67,4 @@ int main()
static_assert ( (o5 < o4), "" );
static_assert ( !(o5 < o5), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.relops/not_equal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.relops/not_equal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.relops/not_equal.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.relops/not_equal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T> constexpr bool operator!=(const optional<T>& x, const optional<T>& y);
@@ -15,8 +16,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
struct X
@@ -29,11 +28,8 @@ struct X
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<T> O;
@@ -75,5 +71,4 @@ int main()
static_assert ( !(o5 != o5), "" );
}
-#endif
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.specalg/make_optional.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.specalg/make_optional.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.specalg/make_optional.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.specalg/make_optional.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// template <class T>
@@ -21,7 +22,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
using std::experimental::optional;
using std::experimental::make_optional;
@@ -46,5 +46,4 @@ int main()
assert(**opt == 3);
assert(s == nullptr);
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.specalg/swap.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.specalg/swap.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.specalg/swap.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.specalg/swap.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// XFAIL: libcpp-no-exceptions
// <optional>
@@ -17,8 +18,6 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
using std::experimental::optional;
class X
@@ -62,12 +61,8 @@ public:
friend void swap(Z& x, Z& y) {throw 6;}
};
-
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
{
optional<int> opt1;
optional<int> opt2;
@@ -302,5 +297,4 @@ int main()
assert(static_cast<bool>(opt2) == true);
assert(*opt2 == 2);
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_in_place_t.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_in_place_t.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_in_place_t.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_in_place_t.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// 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<const in_place_t> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_lvalue_ref.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_lvalue_ref.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_lvalue_ref.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_lvalue_ref.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// 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<const int&> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_nullopt_t.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_nullopt_t.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_nullopt_t.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_const_nullopt_t.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// 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<const nullopt_t> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_in_place_t.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.syn/optional_in_place_t.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_in_place_t.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_in_place_t.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// 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<in_place_t> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_includes_initializer_list.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.syn/optional_includes_initializer_list.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_includes_initializer_list.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_includes_initializer_list.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// #include <initializer_list>
@@ -15,9 +16,7 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
using std::experimental::optional;
std::initializer_list<int> list;
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_lvalue_ref.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.syn/optional_lvalue_ref.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_lvalue_ref.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_lvalue_ref.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// 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<int&> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_nullopt_t.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.syn/optional_nullopt_t.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_nullopt_t.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_nullopt_t.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// 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<nullopt_t> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp (original)
+++ libcxx/trunk/test/std/experimental/optional/optional.syn/optional_rvalue_ref.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <optional>
// 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<int&&> opt;
-#else
-#error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/experimental/string.view/string.view.comparison/opeq.string_view.string.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/string.view/string.view.comparison/opeq.string_view.string.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/string.view/string.view.comparison/opeq.string_view.string.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/string.view/string.view.comparison/opeq.string_view.string.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <string>
// template<class charT, class traits, class Allocator>
@@ -17,8 +18,6 @@
#include <experimental/string_view>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
template <class S>
void
test(const std::string &lhs, S rhs, bool x)
@@ -49,6 +48,4 @@ int main()
test("abcdefghijklmnopqrst", S("abcdefghijklmnopqrst"), true);
}
}
-#else
-int main () {}
-#endif
+
Modified: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/includes.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/includes.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/includes.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/includes.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/type_traits>
#include <experimental/type_traits>
-#if _LIBCPP_STD_VER > 11
-# ifndef _LIBCPP_TYPE_TRAITS
-# error "<experimental/type_traits> must include <type_traits>"
-# endif
+#ifndef _LIBCPP_TYPE_TRAITS
+# error "<experimental/type_traits> must include <type_traits>"
#endif
int main()
Modified: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.rel.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.rel.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.rel.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.rel.pass.cpp Sat May 28 03:57:35 2016
@@ -7,12 +7,11 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/type_traits>
#include <experimental/type_traits>
-#if _LIBCPP_STD_VER > 11
-
namespace ex = std::experimental;
struct base_type {};
@@ -60,6 +59,4 @@ int main()
static_assert(ex::is_convertible_v<T, U> == std::is_convertible<T, U>::value, "");
}
}
-#else /* _LIBCPP_STD_VER <= 11 */
-int main() {}
-#endif /* _LIBCPP_STD_VER > 11 */
+
Modified: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.cat.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.cat.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.cat.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.cat.pass.cpp Sat May 28 03:57:35 2016
@@ -7,12 +7,11 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/type_traits>
#include <experimental/type_traits>
-#if _LIBCPP_STD_VER > 11
-
namespace ex = std::experimental;
struct class_type {};
@@ -176,6 +175,4 @@ int main()
static_assert(ex::is_function_v<T> == std::is_function<T>::value, "");
}
}
-#else /* _LIBCPP_STD_VER <= 11 */
-int main() {}
-#endif /* _LIBCPP_STD_VER > 11 */
+
Modified: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.comp.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.comp.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.comp.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.comp.pass.cpp Sat May 28 03:57:35 2016
@@ -7,12 +7,11 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/type_traits>
#include <experimental/type_traits>
-#if _LIBCPP_STD_VER > 11
-
namespace ex = std::experimental;
struct class_type {};
@@ -97,6 +96,4 @@ int main()
static_assert(ex::is_member_pointer_v<T> == std::is_member_pointer<T>::value, "");
}
}
-#else /* _LIBCPP_STD_VER <= 11 */
-int main() {}
-#endif /* _LIBCPP_STD_VER > 11 */
+
Modified: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.pass.cpp Sat May 28 03:57:35 2016
@@ -7,12 +7,11 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/type_traits>
#include <experimental/type_traits>
-#if _LIBCPP_STD_VER > 11
-
namespace ex = std::experimental;
struct non_literal_type { non_literal_type() {} };
@@ -484,6 +483,4 @@ int main()
static_assert(ex::has_virtual_destructor_v<T> == std::has_virtual_destructor<T>::value, "");
}
}
-#else /* _LIBCPP_STD_VER <= 11 */
-int main() {}
-#endif /* _LIBCPP_STD_VER > 11 */
+
Modified: libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.query.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.query.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.query.pass.cpp (original)
+++ libcxx/trunk/test/std/experimental/utilities/meta/meta.type.synop/meta.unary.prop.query.pass.cpp Sat May 28 03:57:35 2016
@@ -7,12 +7,11 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <experimental/type_traits>
#include <experimental/type_traits>
-#if _LIBCPP_STD_VER > 11
-
namespace ex = std::experimental;
int main()
@@ -61,6 +60,3 @@ int main()
static_assert(ex::extent_v<T, 0> == std::extent<T, 0>::value, "");
}
}
-#else /* _LIBCPP_STD_VER <= 11 */
-int main() {}
-#endif /* _LIBCPP_STD_VER > 11 */
Modified: libcxx/trunk/test/std/input.output/file.streams/c.files/gets.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/file.streams/c.files/gets.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/file.streams/c.files/gets.fail.cpp (original)
+++ libcxx/trunk/test/std/input.output/file.streams/c.files/gets.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// test <cstdio>
// gets
@@ -15,9 +16,5 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
(void) std::gets((char *) NULL);
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp (original)
+++ libcxx/trunk/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.make/make_reverse_iterator.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <iterator>
// reverse_iterator
@@ -19,8 +20,6 @@
#include "test_iterators.h"
-#if _LIBCPP_STD_VER > 11
-
template <class It>
void
test(It i)
@@ -37,6 +36,4 @@ int main()
while ( b != e )
test ( b++ );
}
-#else
-int main () {}
-#endif
+
Modified: libcxx/trunk/test/std/language.support/support.dynamic/alloc.errors/new.badlength/bad_array_length.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/language.support/support.dynamic/alloc.errors/new.badlength/bad_array_length.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/language.support/support.dynamic/alloc.errors/new.badlength/bad_array_length.pass.cpp (original)
+++ libcxx/trunk/test/std/language.support/support.dynamic/alloc.errors/new.badlength/bad_array_length.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// test bad_array_length
#include <new>
@@ -15,7 +16,6 @@
int main()
{
-#if __LIBCPP_STD_VER > 11
static_assert((std::is_base_of<std::bad_alloc, std::bad_array_length>::value),
"std::is_base_of<std::bad_alloc, std::bad_array_length>::value");
static_assert(std::is_polymorphic<std::bad_array_length>::value,
@@ -25,5 +25,4 @@ int main()
b2 = b;
const char* w = b2.what();
assert(w);
-#endif
}
Modified: libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <chrono>
#include <complex>
@@ -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 @@ int main()
auto c2 = 3if;
assert ( c1 == c2 );
}
-
-#endif
}
Modified: libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.fail.cpp (original)
+++ libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.fail.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,12 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
#include <complex>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
std::complex<float> foo = 1.0if; // should fail w/conversion operator not found
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals1.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <chrono>
#include <complex>
@@ -15,7 +16,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
using namespace std::literals;
{
@@ -38,6 +38,4 @@ int main()
auto c2 = 3if;
assert ( c1 == c2 );
}
-
-#endif
}
Modified: libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals2.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals2.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals2.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/complex.number/complex.literals/literals2.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <chrono>
#include <complex>
@@ -15,7 +16,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
using namespace std;
{
@@ -38,6 +38,4 @@ int main()
auto c2 = 3if;
assert ( c1 == c2 );
}
-
-#endif
}
Modified: libcxx/trunk/test/std/strings/basic.string.literals/literal.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/basic.string.literals/literal.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/strings/basic.string.literals/literal.pass.cpp (original)
+++ libcxx/trunk/test/std/strings/basic.string.literals/literal.pass.cpp Sat May 28 03:57:35 2016
@@ -7,12 +7,14 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
+
#include <string>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
using namespace std::literals::string_literals;
static_assert ( std::is_same<decltype( "Hi"s), std::string>::value, "" );
@@ -43,5 +45,4 @@ int main()
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
}
Modified: libcxx/trunk/test/std/strings/basic.string.literals/literal1.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/basic.string.literals/literal1.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/strings/basic.string.literals/literal1.fail.cpp (original)
+++ libcxx/trunk/test/std/strings/basic.string.literals/literal1.fail.cpp Sat May 28 03:57:35 2016
@@ -7,16 +7,15 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
+
#include <string>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
using std::string;
string foo = ""s; // should fail w/conversion operator not found
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/strings/basic.string.literals/literal1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/basic.string.literals/literal1.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/strings/basic.string.literals/literal1.pass.cpp (original)
+++ libcxx/trunk/test/std/strings/basic.string.literals/literal1.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,15 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
+
#include <string>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
using namespace std::literals;
std::string foo = ""s;
-#endif
}
Modified: libcxx/trunk/test/std/strings/basic.string.literals/literal2.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/basic.string.literals/literal2.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/strings/basic.string.literals/literal2.fail.cpp (original)
+++ libcxx/trunk/test/std/strings/basic.string.literals/literal2.fail.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,13 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
+
#include <string>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
std::string foo = ""s; // should fail w/conversion operator not found
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/strings/basic.string.literals/literal2.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/basic.string.literals/literal2.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/strings/basic.string.literals/literal2.pass.cpp (original)
+++ libcxx/trunk/test/std/strings/basic.string.literals/literal2.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,15 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
+
#include <string>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
using namespace std::literals::string_literals;
std::string foo = ""s;
-#endif
}
Modified: libcxx/trunk/test/std/strings/basic.string.literals/literal3.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/basic.string.literals/literal3.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/strings/basic.string.literals/literal3.pass.cpp (original)
+++ libcxx/trunk/test/std/strings/basic.string.literals/literal3.pass.cpp Sat May 28 03:57:35 2016
@@ -7,14 +7,15 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
+
#include <string>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
using namespace std;
string foo = ""s;
-#endif
}
Modified: libcxx/trunk/test/std/strings/basic.string/string.iterators/iterators.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/strings/basic.string/string.iterators/iterators.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/strings/basic.string/string.iterators/iterators.pass.cpp (original)
+++ libcxx/trunk/test/std/strings/basic.string/string.iterators/iterators.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,8 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
+
// <string>
// 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 @@ int main()
assert ( !(ii1 != ii2 ));
assert ( !(ii1 != cii ));
}
-#endif
}
Modified: libcxx/trunk/test/std/thread/futures/futures.promise/set_rvalue.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/futures/futures.promise/set_rvalue.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/futures/futures.promise/set_rvalue.pass.cpp (original)
+++ libcxx/trunk/test/std/thread/futures/futures.promise/set_rvalue.pass.cpp Sat May 28 03:57:35 2016
@@ -7,8 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
-// XFAIL: libcpp-no-exceptions
-// UNSUPPORTED: libcpp-has-no-threads
+// UNSUPPORTED: libcpp-has-no-threads, libcpp-no-exceptions
// <future>
Modified: libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_assign.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_assign.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_assign.fail.cpp (original)
+++ libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_assign.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <shared_mutex>
// template <class Mutex> class shared_lock;
@@ -15,20 +16,12 @@
#include <shared_mutex>
-#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<std::shared_timed_mutex> lk0(m0);
std::shared_lock<std::shared_timed_mutex> lk1(m1);
lk1 = lk0;
-#else
-# error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_ctor.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_ctor.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_ctor.fail.cpp (original)
+++ libcxx/trunk/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/copy_ctor.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <shared_mutex>
// template <class Mutex> class shared_lock;
@@ -15,16 +16,10 @@
#include <shared_mutex>
-#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<std::shared_timed_mutex> lk0(m);
std::shared_lock<std::shared_timed_mutex> lk = lk0;
-#else
-# error
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/assign.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/assign.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/assign.fail.cpp (original)
+++ libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/assign.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <shared_mutex>
// 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
}
Modified: libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/copy.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/copy.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/copy.fail.cpp (original)
+++ libcxx/trunk/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/copy.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <shared_mutex>
// 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
}
Modified: libcxx/trunk/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/arithmetic.operations/transparent.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
#include <functional>
#include <string>
@@ -22,9 +23,8 @@ public:
};
-int main () {
-#if _LIBCPP_STD_VER > 11
-
+int main ()
+{
static_assert ( !is_transparent<std::plus<int>>::value, "" );
static_assert ( !is_transparent<std::plus<std::string>>::value, "" );
static_assert ( is_transparent<std::plus<void>>::value, "" );
@@ -55,7 +55,5 @@ int main () {
static_assert ( is_transparent<std::negate<void>>::value, "" );
static_assert ( is_transparent<std::negate<>>::value, "" );
-#endif
-
return 0;
- }
+}
Modified: libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/bit_not.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/bit_not.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/bit_not.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/bit_not.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <functional>
// bit_not
@@ -17,7 +18,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
typedef std::bit_not<int> F;
const F f = F();
static_assert((std::is_same<F::argument_type, int>::value), "" );
@@ -43,5 +43,4 @@ int main()
constexpr int bar = std::bit_not<> () (0xEA95) & 0xFFFF;
static_assert ( bar == 0x156A, "" );
-#endif
}
Modified: libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/bitwise.operations/transparent.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
#include <functional>
#include <string>
@@ -23,8 +24,6 @@ public:
int main () {
-#if _LIBCPP_STD_VER > 11
-
static_assert ( !is_transparent<std::bit_and<int>>::value, "" );
static_assert ( !is_transparent<std::bit_and<std::string>>::value, "" );
static_assert ( is_transparent<std::bit_and<void>>::value, "" );
@@ -45,7 +44,5 @@ int main () {
static_assert ( is_transparent<std::bit_not<void>>::value, "" );
static_assert ( is_transparent<std::bit_not<>>::value, "" );
-#endif
-
return 0;
- }
+}
Modified: libcxx/trunk/test/std/utilities/function.objects/comparisons/transparent.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/comparisons/transparent.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/comparisons/transparent.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/comparisons/transparent.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
#include <functional>
#include <string>
@@ -22,9 +23,8 @@ public:
};
-int main () {
-#if _LIBCPP_STD_VER > 11
-
+int main ()
+{
static_assert ( !is_transparent<std::less<int>>::value, "" );
static_assert ( !is_transparent<std::less<std::string>>::value, "" );
static_assert ( is_transparent<std::less<void>>::value, "" );
@@ -55,7 +55,5 @@ int main () {
static_assert ( is_transparent<std::greater_equal<void>>::value, "" );
static_assert ( is_transparent<std::greater_equal<>>::value, "" );
-#endif
-
return 0;
- }
+}
Modified: libcxx/trunk/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/function.objects/logical.operations/transparent.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
#include <functional>
#include <string>
@@ -22,9 +23,8 @@ public:
};
-int main () {
-#if _LIBCPP_STD_VER > 11
-
+int main ()
+{
static_assert ( !is_transparent<std::logical_and<int>>::value, "" );
static_assert ( !is_transparent<std::logical_and<std::string>>::value, "" );
static_assert ( is_transparent<std::logical_and<void>>::value, "" );
@@ -40,7 +40,5 @@ int main () {
static_assert ( is_transparent<std::logical_not<void>>::value, "" );
static_assert ( is_transparent<std::logical_not<>>::value, "" );
-#endif
-
return 0;
- }
+}
Modified: libcxx/trunk/test/std/utilities/intseq/intseq.general/integer_seq.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/intseq/intseq.general/integer_seq.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/intseq/intseq.general/integer_seq.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/intseq/intseq.general/integer_seq.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <utility>
// class make_integer_sequence
@@ -16,19 +17,13 @@
#include <type_traits>
#include <cassert>
-#if _LIBCPP_STD_VER > 11
-
template <typename AtContainer, typename T, T... I>
auto extract ( const AtContainer &t, const std::integer_sequence<T, I...> )
-> decltype ( std::make_tuple ( std::get<I>(t)... ))
{ return std::make_tuple ( std::get<I>(t)... ); }
-#endif // _LIBCPP_STD_VER > 11
-
int main()
{
-#if _LIBCPP_STD_VER > 11
-
// Make a couple of sequences
using int3 = std::make_integer_sequence<int, 3>; // generates int: 0,1,2
using size7 = std::make_integer_sequence<size_t, 7>; // generates size_t: 0,1,2,3,4,5,6
@@ -82,5 +77,4 @@ int main()
auto tsizemix = extract ( tup, sizemix ());
static_assert ( std::tuple_size<decltype(tsizemix)>::value == sizemix::size (), "tsizemix size wrong");
assert ( tsizemix == std::make_tuple ( 11, 11, 12, 13, 15 ));
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/intseq/intseq.intseq/integer_seq.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <utility>
// template<class T, T... I>
@@ -24,8 +25,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
-
// Make a few of sequences
using int3 = std::integer_sequence<int, 3, 2, 1>;
using size1 = std::integer_sequence<std::size_t, 7>;
@@ -44,6 +43,4 @@ int main()
static_assert ( std::is_same<bool0::value_type, bool>::value, "bool0 type wrong" );
static_assert ( bool0::size() == 0, "bool0 size wrong" );
-
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.array.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.array.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.array.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.array.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
#include <memory>
#include <string>
#include <cassert>
@@ -23,7 +24,6 @@ private:
int main()
{
-#if _LIBCPP_STD_VER > 11
{
auto p1 = std::make_unique<int[]>(5);
for ( int i = 0; i < 5; ++i )
@@ -41,5 +41,4 @@ int main()
for ( int i = 0; i < 7; ++i )
assert ( p3[i].get () == 3 );
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.single.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.single.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.single.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.create/make_unique.single.pass.cpp Sat May 28 03:57:35 2016
@@ -7,13 +7,13 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
#include <memory>
#include <string>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
{
std::unique_ptr<int> p1 = std::make_unique<int>(1);
assert ( *p1 == 1 );
@@ -29,5 +29,4 @@ int main()
p2 = std::make_unique<std::string> ( 6, 'z' );
assert ( *p2 == "zzzzzz" );
}
-#endif // _LIBCPP_STD_VER > 11
}
Modified: libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/meta/meta.trans/meta.trans.other/enable_if2.fail.cpp Sat May 28 03:57:35 2016
@@ -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<false> A;
-#else
- static_assert ( false, "" );
-#endif
}
Modified: libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.prop/is_final.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// type_traits
// is_final
@@ -14,8 +15,6 @@
#include <type_traits>
#include "test_macros.h"
-#if _LIBCPP_STD_VER > 11
-
struct P final { };
union U1 { };
union U2 final { };
@@ -61,6 +60,3 @@ int main ()
test_is_final <U2>();
test_is_not_final<U2*>();
}
-#else
-int main () {}
-#endif
Modified: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <chrono>
#include <chrono>
@@ -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 @@ int main()
assert ( ns == std::chrono::nanoseconds(645));
auto ns2 = 645.ns;
assert ( ns == ns2 );
-#endif
}
Modified: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.fail.cpp Sat May 28 03:57:35 2016
@@ -7,15 +7,13 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
#include <chrono>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
std::chrono::hours h = 4h; // should fail w/conversion operator not found
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals1.pass.cpp Sat May 28 03:57:35 2016
@@ -7,12 +7,13 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
#include <chrono>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
using namespace std::chrono;
hours h = 4h;
@@ -44,5 +45,4 @@ int main()
assert ( ns == nanoseconds(645));
auto ns2 = 645.ns;
assert ( ns == ns2 );
-#endif
}
Modified: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.fail.cpp Sat May 28 03:57:35 2016
@@ -7,16 +7,14 @@
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++98, c++03, c++11
#include <chrono>
#include <cassert>
int main()
{
-#if _LIBCPP_STD_VER > 11
using std::chrono::hours;
hours foo = 4h; // should fail w/conversion operator not found
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.duration/time.duration.literals/literals2.pass.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
// <chrono>
#include <chrono>
@@ -15,7 +16,6 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
using namespace std::literals;
std::chrono::hours h = 4h;
@@ -47,5 +47,4 @@ int main()
assert ( ns == std::chrono::nanoseconds(645));
auto ns2 = 645.ns;
assert ( ns == ns2 );
-#endif
}
Modified: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type1.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type1.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type1.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type1.fail.cpp Sat May 28 03:57:35 2016
@@ -17,11 +17,7 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
typedef std::complex<float> cf;
auto t1 = std::make_tuple<int, std::string> ( 42, "Hi" );
assert (( std::get<cf>(t1) == cf {1,2} )); // no such type
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type2.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type2.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type2.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type2.fail.cpp Sat May 28 03:57:35 2016
@@ -17,11 +17,7 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
typedef std::complex<float> cf;
auto t1 = std::make_tuple<int, int, std::string, cf> ( 42, 21, "Hi", { 1,2 } );
assert ( std::get<int>(t1) == 42 ); // two ints here
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type3.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type3.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type3.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type3.fail.cpp Sat May 28 03:57:35 2016
@@ -17,11 +17,7 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
typedef std::complex<float> cf;
auto t1 = std::make_tuple<double, int, std::string, cf, int> ( 42, 21, "Hi", { 1,2 } );
assert ( std::get<int>(t1) == 42 ); // two ints here (one at the end)
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type4.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type4.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type4.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/tuple/tuple.tuple/tuple.elem/tuple.by.type4.fail.cpp Sat May 28 03:57:35 2016
@@ -17,11 +17,7 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
typedef std::unique_ptr<int> upint;
std::tuple<upint> t(upint(new int(4)));
upint p = std::get<upint>(t);
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/utilities/utility/exchange/exchange.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/exchange/exchange.pass.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/utility/exchange/exchange.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/utility/exchange/exchange.pass.cpp Sat May 28 03:57:35 2016
@@ -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 @@ int main()
assert ( std::exchange ( s3, "" ) == s2 );
assert ( s3.size () == 0 );
}
-
-#endif
}
Modified: libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type1.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type1.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type1.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type1.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
#include <utility>
#include <complex>
@@ -14,11 +15,7 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
typedef std::complex<float> cf;
auto t1 = std::make_pair<int, double> ( 42, 3.4 );
assert (( std::get<cf>(t1) == cf {1,2} )); // no such type
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type2.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type2.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type2.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type2.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
#include <utility>
#include <complex>
@@ -14,11 +15,7 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
typedef std::complex<float> cf;
auto t1 = std::make_pair<int, int> ( 42, 43 );
assert ( std::get<int>(t1) == 42 ); // two ints
-#else
-#error
-#endif
}
Modified: libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type3.fail.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type3.fail.cpp?rev=271108&r1=271107&r2=271108&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type3.fail.cpp (original)
+++ libcxx/trunk/test/std/utilities/utility/pairs/pair.astuple/pairs.by.type3.fail.cpp Sat May 28 03:57:35 2016
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+// UNSUPPORTED: c++98, c++03, c++11
#include <utility>
#include <complex>
@@ -14,11 +15,7 @@
int main()
{
-#if _LIBCPP_STD_VER > 11
typedef std::unique_ptr<int> upint;
std::pair<upint, int> t(upint(new int(4)), 23);
upint p = std::get<upint>(t);
-#else
-#error
-#endif
}
More information about the cfe-commits
mailing list