URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do run }
|
// { dg-do run }
|
#include
|
#include
|
|
|
template
|
template
|
struct allocator {
|
struct allocator {
|
typedef T* pointer;
|
typedef T* pointer;
|
|
|
template struct rebind {
|
template struct rebind {
|
typedef allocator other;
|
typedef allocator other;
|
};
|
};
|
};
|
};
|
|
|
template
|
template
|
struct alloc_traits
|
struct alloc_traits
|
{
|
{
|
typedef typename Allocator::template rebind::other allocator_type;
|
typedef typename Allocator::template rebind::other allocator_type;
|
};
|
};
|
|
|
int main ()
|
int main ()
|
{
|
{
|
typedef alloc_traits >::allocator_type at;
|
typedef alloc_traits >::allocator_type at;
|
|
|
return typeid (at) != typeid (allocator );
|
return typeid (at) != typeid (allocator );
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.