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 17... |
Line 17... |
// 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/>.
|
|
|
// 27.8.1.4 Overridden virtual functions
|
// 27.8.1.4 Overridden virtual functions
|
|
|
|
// { dg-options " -DMAX_SIZE_EXP=16" { target { or32-*-elf } } }
|
|
|
|
#ifndef MAX_SIZE_EXP
|
|
#define MAX_SIZE_EXP 18
|
|
#endif
|
|
|
#include <sstream>
|
#include <sstream>
|
#include <testsuite_hooks.h>
|
#include <testsuite_hooks.h>
|
|
|
void test01()
|
void test01()
|
{
|
{
|
using namespace std;
|
using namespace std;
|
bool test __attribute__((unused)) = true;
|
bool test __attribute__((unused)) = true;
|
|
|
const unsigned max_size = 1 << 18;
|
const unsigned max_size = 1 << MAX_SIZE_EXP;
|
|
|
static wchar_t ref[max_size];
|
static wchar_t ref[max_size];
|
wmemset(ref, L'\0', max_size);
|
wmemset(ref, L'\0', max_size);
|
|
|
static wchar_t src[max_size * 2];
|
static wchar_t src[max_size * 2];
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.