1 /* $NetBSD: nan.c,v 1.4 2004/03/05 01:00:53 kleink Exp $ */
4 * This file is in the Public Domain.
6 * Blatently copied from the infinity test by Ben Harris.
12 * Check that NAN (alias __nanf) really is not-a-number.
13 * Alternatively, check that isnan() minimally works.
20 main(int argc
, char **argv
)
23 /* NAN is meant to be a (float) NaN. */
25 assert(isnan((double)NAN
));