summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c1
1 files changed, 1 insertions, 0 deletions
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);