From 47eab10b73a95e096ca8e400e1342f9f8e7926bf Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 6 Mar 2019 19:33:12 -0500 Subject: test I^2 --- complex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'complex.c') diff --git a/complex.c b/complex.c index c7bccd5..09ea4f1 100644 --- a/complex.c +++ b/complex.c @@ -13,6 +13,7 @@ void test_complex_h(void) test_true(cimag(I) == 1); test_true(creal(_Complex_I) == 0); test_true(cimag(_Complex_I) == 1); + test_double(I * I, -1); #ifdef _Imaginary_I test_true(creal(_Imaginary_I) == 0); -- cgit v1.2.1