diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2005-02-28 03:48:13 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2005-02-28 03:48:13 +0000 |
commit | ff5f58a960ef5ebef296b78380ac21ec73eb60d3 (patch) | |
tree | 6b416e8523c502a82d386c98de1a39da6527b040 /gcc/testsuite/gcc.dg/builtins-10.c | |
parent | f9f5c9e8498b005d223e54abc259d8edc19f22f3 (diff) |
Merge from the pain trainstructure-aliasing-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/structure-aliasing-branch@95649 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/builtins-10.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/builtins-10.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.dg/builtins-10.c b/gcc/testsuite/gcc.dg/builtins-10.c index 9e5a4583fc3..53158a0f852 100644 --- a/gcc/testsuite/gcc.dg/builtins-10.c +++ b/gcc/testsuite/gcc.dg/builtins-10.c @@ -14,11 +14,12 @@ extern double exp(double); extern double log(double); extern double sqrt(double); extern double pow(double,double); +extern double fabs(double); void test(double x) { - if (sqrt(pow(x,4.0)) != x*x) - link_error (); + /*if (sqrt(pow(x,4.0)) != x*x) + link_error (); */ if (pow(sqrt(x),4.0) != x*x) link_error (); @@ -29,7 +30,7 @@ void test(double x) void test2(double x, double y, double z) { - if (sqrt(pow(x,y)) != pow(x,y*0.5)) + if (sqrt(pow(x,y)) != pow(fabs(x),y*0.5)) link_error (); if (log(pow(x,y)) != y*log(x)) |