authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-11-17 18:58:16+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-11-19 01:42:45+01:00
loga0e6d413315e2006bfb11999c7cc4f0a6c272f0e
treef47c6cb4476df6d59431fa3dcda9aca50461bba1
parent41f7f3d4d55f93c15796f73d1be9e2ec00e54644
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

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`.

1 files changed, 0 insertions(+), 25 deletions(-)

  • foldertest
test/standalone/c_compiler/test.c-25
......@@ -25,30 +25,5 @@ int main (int argc, char *argv[])
2525
2626 if (!ok) abort();
2727
28 // Test some basic arithmetic from compiler-rt
29 {
30 double complex z = 0.0 + I * 4.0;
31 double complex w = 0.0 + I * 16.0;
32 double complex product = z * w;
33 double complex quotient = z / w;
34
35 if (!(creal(product) == -64.0)) abort();
36 if (!(cimag(product) == 0.0)) abort();
37 if (!(creal(quotient) == 0.25)) abort();
38 if (!(cimag(quotient) == 0.0)) abort();
39 }
40
41 {
42 float complex z = 4.0 + I * 4.0;
43 float complex w = 2.0 - I * 2.0;
44 float complex product = z * w;
45 float complex quotient = z / w;
46
47 if (!(creal(product) == 16.0)) abort();
48 if (!(cimag(product) == 0.0)) abort();
49 if (!(creal(quotient) == 0.0)) abort();
50 if (!(cimag(quotient) == 2.0)) abort();
51 }
52
5328 return EXIT_SUCCESS;
5429}