maint: update copyright
[gnulib.git] / tests / test-floorl-ieee.c
index ec4b4e1..2a2e4f4 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of rounding towards negative infinity.
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010-2014 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #include <math.h>
 
 #include "fpucw.h"
+#include "isnanl-nolibm.h"
 #include "minus-zero.h"
+#include "infinity.h"
+#include "nan.h"
 #include "macros.h"
 
 int
@@ -44,5 +47,13 @@ main ()
   ASSERT (!!signbit (floorl (-0.3L)) == !!signbit (minus_zerol));
   ASSERT (!!signbit (floorl (-0.7L)) == !!signbit (minus_zerol));
 
+  /* [MX] shaded specification in POSIX.  */
+
+  /* NaN.  */
+  ASSERT (isnanl (floorl (NaNl ())));
+  /* Infinity.  */
+  ASSERT (floorl (Infinityl ()) == Infinityl ());
+  ASSERT (floorl (- Infinityl ()) == - Infinityl ());
+
   return 0;
 }