X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fabsf.c;h=e9b7ccd339628e4bfe15b692211fcf6d4e716e64;hb=5068051817bc09c088f31d3627956bfe5086b130;hp=d08625e0c68d2abac44cfd48e6b7dd441584dc3e;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git diff --git a/tests/test-fabsf.c b/tests/test-fabsf.c index d08625e0c..e9b7ccd33 100644 --- a/tests/test-fabsf.c +++ b/tests/test-fabsf.c @@ -1,5 +1,5 @@ /* Test of fabsf() function. - Copyright (C) 2010-2012 Free Software Foundation, Inc. + Copyright (C) 2010-2013 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; }