Fix tests on old arm platforms for optional.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Thu, 22 Sep 2016 11:01:29 +0000 (14:01 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Thu, 22 Sep 2016 11:01:29 +0000 (14:01 +0300)
* testsuite/20_util/optional/77288.cc: Don't use exception_ptr.

From-SVN: r240347

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/optional/77288.cc

index e9bb0ce0fa6d7b4cabf2921384a71b7f5cb7fbe5..16a49549af43fcd00b523f5dec657a8bf7846bfb 100644 (file)
@@ -1,3 +1,8 @@
+2016-09-22  Ville Voutilainen  <ville.voutilainen@gmail.com>
+
+       Fix tests on old arm platforms for optional.
+       * testsuite/20_util/optional/77288.cc: Don't use exception_ptr.
+
 2016-09-22  Jonathan Wakely  <jwakely@redhat.com>
 
        * python/libstdcxx/v6/printers.py (StdVariantPrinter): Adjust for
index eafafb7163935d8b52d3d720bbd55c065fe3a760..0df74a9963cb8173390115d7c0e69ae03ed4f072 100644 (file)
@@ -18,7 +18,6 @@
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-#include <exception>
 #include <optional>
 #include <any>
 
@@ -28,8 +27,8 @@ using std::optional;
 
 void test01()
 {
-    optional<optional<std::exception_ptr>> nested_element;
-    optional<std::exception_ptr> element = {};
+    optional<optional<int>> nested_element;
+    optional<int> element = {};
     nested_element = element;
     VERIFY(nested_element);
 }