doc: use ASCII in .texi files where UTF-8 isn't needed
[gnulib.git] / tests / test-fmodf.c
index a0a5f39..3965005 100644 (file)
@@ -1,5 +1,5 @@
 /* Test of fmodf() function.
-   Copyright (C) 2010-2011 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 "signature.h"
 SIGNATURE_CHECK (fmodf, float, (float, float));
 
+#include <float.h>
+
 #include "macros.h"
 
-volatile float x;
-volatile float y;
-float z;
+#define DOUBLE float
+#define L_(literal) literal##f
+#define MANT_DIG FLT_MANT_DIG
+#define MAX_EXP FLT_MAX_EXP
+#define FMOD fmodf
+#define RANDOM randomf
+#include "test-fmod.h"
 
 int
 main ()
@@ -38,5 +44,7 @@ main ()
   z = fmodf (x, y);
   ASSERT (z >= 2.962720f && z <= 2.962722f);
 
+  test_function ();
+
   return 0;
 }