authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-09 09:15:54+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-10 08:36:08+02:00
log40cde789f792769a1d938f6bc620b6a67c3b8099
tree0a1b4a5fb2838ee6a2bc5105c24ecf01ff92ffed
parent1b2f003f06b5686326da6910def307170e2293e6
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

test-standalone: remove some dead #ifdefs in c_compiler


1 files changed, 2 insertions(+), 7 deletions(-)

test/standalone/c_compiler/test.cpp+2-7
......@@ -1,9 +1,6 @@
11#include <cassert>
22#include <iostream>
3
4#ifndef _LIBCPP_HAS_NO_THREADS
53#include <future>
6#endif
74
85thread_local unsigned int tls_counter = 1;
96
......@@ -59,14 +56,12 @@ int main (int argc, char *argv[])
5956
6057 if (!ok) abort();
6158
62#ifndef _LIBCPP_HAS_NO_THREADS
6359 std::future<bool> fut = std::async(is_prime, 313);
6460 bool ret = fut.get();
6561 assert(ret);
66#endif
6762
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.
7065 // TODO file an issue for this and link it here.
7166 try {
7267 throw 20;