From a0e6d413315e2006bfb11999c7cc4f0a6c272f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 17 Nov 2025 18:58:16 +0100 Subject: [PATCH] test: remove complex arithmetic testing from `c_compiler` standalone test This has no business being here. Tests for our compiler-rt routines should be in compiler-rt, and tests for our C ABI compliance should be in `test-c-abi`. --- test/standalone/c_compiler/test.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/test/standalone/c_compiler/test.c b/test/standalone/c_compiler/test.c index 3beb1aa2ff..ad3f48ccf9 100644 --- a/test/standalone/c_compiler/test.c +++ b/test/standalone/c_compiler/test.c @@ -25,30 +25,5 @@ int main (int argc, char *argv[]) if (!ok) abort(); - // Test some basic arithmetic from compiler-rt - { - double complex z = 0.0 + I * 4.0; - double complex w = 0.0 + I * 16.0; - double complex product = z * w; - double complex quotient = z / w; - - if (!(creal(product) == -64.0)) abort(); - if (!(cimag(product) == 0.0)) abort(); - if (!(creal(quotient) == 0.25)) abort(); - if (!(cimag(quotient) == 0.0)) abort(); - } - - { - float complex z = 4.0 + I * 4.0; - float complex w = 2.0 - I * 2.0; - float complex product = z * w; - float complex quotient = z / w; - - if (!(creal(product) == 16.0)) abort(); - if (!(cimag(product) == 0.0)) abort(); - if (!(creal(quotient) == 0.0)) abort(); - if (!(cimag(quotient) == 2.0)) abort(); - } - return EXIT_SUCCESS; }