From: Paolo Carlini Date: Sat, 14 Apr 2012 01:34:00 +0000 (+0000) Subject: 51083.cc: Move... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a9218cc9ce4bbf00fb8cd6b9dbdca8f59476d11;p=gcc.git 51083.cc: Move... 2012-04-13 Paolo Carlini * testsuite/26_numerics/cmath/51083.cc: Move... * testsuite/26_numerics/headers/cmath/51083.cc: ... here. From-SVN: r186445 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a2a821634f1..d241a8bef39 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2012-04-13 Paolo Carlini + + * testsuite/26_numerics/cmath/51083.cc: Move... + * testsuite/26_numerics/headers/cmath/51083.cc: ... here. + 2012-04-13 Laurent Alfonsi PR libstdc++/52604 diff --git a/libstdc++-v3/testsuite/26_numerics/cmath/51083.cc b/libstdc++-v3/testsuite/26_numerics/cmath/51083.cc deleted file mode 100644 index 8ba9b10e5d8..00000000000 --- a/libstdc++-v3/testsuite/26_numerics/cmath/51083.cc +++ /dev/null @@ -1,62 +0,0 @@ -// { dg-options "-std=gnu++0x" } -// -// Copyright (C) 2011 Free Software Foundation, Inc. -// -// This file is part of the GNU ISO C++ Library. This library is free -// software; you can redistribute it and/or modify it under the -// terms of the GNU General Public License as published by the -// Free Software Foundation; either version 3, or (at your option) -// any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License along -// with this library; see the file COPYING3. If not see -// . - -#include - -namespace a -{ - template class Mat { }; - - template struct Mat2 : Mat { }; - - template - int fdim(Mat) { return 1; } - - template - int floor(Mat, U) { return 1; } - template - int floor(T, Mat) { return 1; } - - template - int fma(Mat, U, V) { return 1; } - template - int fma(T, Mat, V) { return 1; } - template - int fma(T, U, Mat) { return 1; } -} - -int main() -{ - int __attribute__((unused)) i; - - using namespace std; - - a::Mat2 c; - i = fdim(c); - i = floor(c, 0.); - i = floor(0., c); - i = floor(c, 1); - i = floor(1, c); - i = fma(c, 0., 1.); - i = fma(0., c, 1.); - i = fma(0., 1., c); - i = fma(c, 0., 1); - i = fma(0., c, 1); - i = fma(0., 1, c); -} diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/51083.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/51083.cc new file mode 100644 index 00000000000..8ba9b10e5d8 --- /dev/null +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/51083.cc @@ -0,0 +1,62 @@ +// { dg-options "-std=gnu++0x" } +// +// Copyright (C) 2011 Free Software Foundation, Inc. +// +// This file is part of the GNU ISO C++ Library. This library is free +// software; you can redistribute it and/or modify it under the +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 3, or (at your option) +// any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING3. If not see +// . + +#include + +namespace a +{ + template class Mat { }; + + template struct Mat2 : Mat { }; + + template + int fdim(Mat) { return 1; } + + template + int floor(Mat, U) { return 1; } + template + int floor(T, Mat) { return 1; } + + template + int fma(Mat, U, V) { return 1; } + template + int fma(T, Mat, V) { return 1; } + template + int fma(T, U, Mat) { return 1; } +} + +int main() +{ + int __attribute__((unused)) i; + + using namespace std; + + a::Mat2 c; + i = fdim(c); + i = floor(c, 0.); + i = floor(0., c); + i = floor(c, 1); + i = floor(1, c); + i = fma(c, 0., 1.); + i = fma(0., c, 1.); + i = fma(0., 1., c); + i = fma(c, 0., 1); + i = fma(0., c, 1); + i = fma(0., 1, c); +}