URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Show entire file |
Details |
Blame |
View Log
Rev 424 |
Rev 565 |
Line 15... |
Line 15... |
|
|
// You should have received a copy of the GNU General Public License along
|
// You should have received a copy of the GNU General Public License along
|
// with this library; see the file COPYING3. If not see
|
// with this library; see the file COPYING3. If not see
|
// <http://www.gnu.org/licenses/>.
|
// <http://www.gnu.org/licenses/>.
|
|
|
|
// { dg-options " -DVALARRAY_SIZE=500000" { target { or32-*-elf } } }
|
|
|
|
#ifndef VALARRAY_SIZE
|
|
#define VALARRAY_SIZE 5000000
|
|
#endif
|
|
|
#include <valarray>
|
#include <valarray>
|
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
|
|
// libstdc++/28277
|
// libstdc++/28277
|
void test01()
|
void test01()
|
{
|
{
|
bool test __attribute__((unused)) = true;
|
bool test __attribute__((unused)) = true;
|
|
|
const std::valarray<int> v1(1, 5000000);
|
const std::valarray<int> v1(1, VALARRAY_SIZE);
|
|
|
const std::valarray<int> v2 = v1.shift(1);
|
const std::valarray<int> v2 = v1.shift(1);
|
VERIFY( v2.size() == v1.size() );
|
VERIFY( v2.size() == v1.size() );
|
VERIFY( v2[v1.size() - 1] == 0 );
|
VERIFY( v2[v1.size() - 1] == 0 );
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.