URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
//
|
//
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Copyright (C) 2001 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 25 April 2001
|
// Contributed by Nathan Sidwell 25 April 2001
|
// Origin:pcarlini@unitus.it
|
// Origin:pcarlini@unitus.it
|
|
|
// Bug 2559. We hadn't implemented code to mangle numbers bigger than
|
// Bug 2559. We hadn't implemented code to mangle numbers bigger than
|
// HOST_WIDE_INT.
|
// HOST_WIDE_INT.
|
|
|
template
|
template
|
class integer_traits_base
|
class integer_traits_base
|
{
|
{
|
public:
|
public:
|
static const bool is_integral = true;
|
static const bool is_integral = true;
|
};
|
};
|
|
|
template
|
template
|
class integer_traits
|
class integer_traits
|
{
|
{
|
public:
|
public:
|
static const bool is_integral = false;
|
static const bool is_integral = false;
|
};
|
};
|
|
|
template<>
|
template<>
|
class integer_traits
|
class integer_traits
|
: public integer_traits_base
|
: public integer_traits_base
|
9223372036854775807LL>
|
9223372036854775807LL>
|
{ };
|
{ };
|
|
|
integer_traits f;
|
integer_traits f;
|
|
|
template T foo ()
|
template T foo ()
|
{
|
{
|
return value;
|
return value;
|
}
|
}
|
|
|
void x ()
|
void x ()
|
{
|
{
|
foo ();
|
foo ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.