OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [memclass4.C] - Blame information for rev 305

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
#include 
3
 
4
template 
5
struct allocator {
6
  typedef T*        pointer;
7
 
8
  template  struct rebind {
9
    typedef allocator other;
10
  };
11
};
12
 
13
template 
14
struct alloc_traits
15
{
16
  typedef typename Allocator::template rebind::other allocator_type;
17
};
18
 
19
int main ()
20
{
21
  typedef alloc_traits >::allocator_type at;
22
 
23
  return typeid (at) != typeid (allocator );
24
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.