| ... | @@ -1,9 +1,6 @@ | ... | @@ -1,9 +1,6 @@ |
| 1 | #include <cassert> | 1 | #include <cassert> |
| 2 | #include <iostream> | 2 | #include <iostream> |
| 3 | | | |
| 4 | #ifndef _LIBCPP_HAS_NO_THREADS | | |
| 5 | #include <future> | 3 | #include <future> |
| 6 | #endif | | |
| 7 | | 4 | |
| 8 | thread_local unsigned int tls_counter = 1; | 5 | thread_local unsigned int tls_counter = 1; |
| 9 | | 6 | |
| ... | @@ -59,14 +56,12 @@ int main (int argc, char *argv[]) | ... | @@ -59,14 +56,12 @@ int main (int argc, char *argv[]) |
| 59 | | 56 | |
| 60 | if (!ok) abort(); | 57 | if (!ok) abort(); |
| 61 | | 58 | |
| 62 | #ifndef _LIBCPP_HAS_NO_THREADS | | |
| 63 | std::future<bool> fut = std::async(is_prime, 313); | 59 | std::future<bool> fut = std::async(is_prime, 313); |
| 64 | bool ret = fut.get(); | 60 | bool ret = fut.get(); |
| 65 | assert(ret); | 61 | assert(ret); |
| 66 | #endif | | |
| 67 | | 62 | |
| 68 | #if !defined(__wasm__) && !defined(__APPLE__) | 63 | #if !defined(__APPLE__) |
| 69 | // WASM and macOS are not passing this yet. | 64 | // macOS is not passing this yet. |
| 70 | // TODO file an issue for this and link it here. | 65 | // TODO file an issue for this and link it here. |
| 71 | try { | 66 | try { |
| 72 | throw 20; | 67 | throw 20; |