[libcxx-commits] [libcxx] [libc++] Throw future_error in future.get() (PR #179409)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 8 00:39:51 PDT 2026


================
@@ -0,0 +1,96 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// UNSUPPORTED: no-threads
+// UNSUPPORTED: c++03
+// UNSUPPORTED: no-exceptions
+
+// <future>
+
+// class future<R>
+
+// R future::get();
+// R& future<R&>::get();
+// void future<void>::get();
+
+#include <future>
+#include <cassert>
+
+#include "test_macros.h"
+
+int main(int, char**)
----------------
philnik777 wrote:

Please format the file.

https://github.com/llvm/llvm-project/pull/179409


More information about the libcxx-commits mailing list