summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-06 19:33:12 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-06 19:33:12 -0500
commit47eab10b73a95e096ca8e400e1342f9f8e7926bf (patch)
treedd68075e2b58021765780c0543b741cefcfc99fe /complex.c
parentcb0dc1130277cab3a4d5bcc7b12dedde3de02e59 (diff)
test I^2
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);