/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <complex.h>
#include <stdio.h>

int main () {
   double complex z1 = complex(1, 2);
   double complex z2 = ComplexNaN;
   complex z3 = complex(1,2);
   complex z4 = ComplexNaN;
   printf("iscnan(z1) = %d\n", iscnan(z1));
   printf("iscnan(z2) = %d\n", iscnan(z2));
   printf("iscnan(z3) = %d\n", iscnan(z3));
   printf("iscnan(z4) = %d\n", iscnan(z4));
   printf("iscnan(ComplexNaN) = %d\n", iscnan(ComplexNaN));
   printf("iscnan(ComplexInf) = %d\n", iscnan(ComplexInf));
}
