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 @@...@@ -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
74
8thread_local unsigned int tls_counter = 1;5thread_local unsigned int tls_counter = 1;
96
...@@ -59,14 +56,12 @@ int main (int argc, char *argv[])...@@ -59,14 +56,12 @@ int main (int argc, char *argv[])
5956
60 if (!ok) abort();57 if (!ok) abort();
6158
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
6762
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;