X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fabsf.c;h=ec28d5aaf7c61e71944fb2c561b6325ec306768b;hb=200969d8ebed76c9b82837406a87cc767fafac1b;hp=d9dfa84f5896bb6484baea2edd3eef5799d17834;hpb=c022f617aaf9b31970c0497686db74e510e38c2a;p=gnulib.git diff --git a/tests/test-fabsf.c b/tests/test-fabsf.c index d9dfa84f5..ec28d5aaf 100644 --- a/tests/test-fabsf.c +++ b/tests/test-fabsf.c @@ -1,5 +1,5 @@ /* Test of fabsf() function. - Copyright (C) 2010-2011 Free Software Foundation, Inc. + Copyright (C) 2010-2012 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 @@ -23,10 +23,17 @@ #include "signature.h" SIGNATURE_CHECK (fabsf, float, (float)); +#include + #include "macros.h" +#include "minus-zero.h" -volatile float x; -float y; +#define DOUBLE float +#define L_(literal) literal##f +#define MINUS_ZERO minus_zerof +#define FABS fabsf +#define RANDOM randomf +#include "test-fabs.h" int main () @@ -41,5 +48,7 @@ main () y = fabsf (x); ASSERT (y == 0.6f); + test_function (); + return 0; }