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