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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename28.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
//
3
// Origin: Jens.Maurer@gmx.net
4
// Copyright (C) 2001 Free Software Foundation, Inc.
5
// Contributed by Nathan Sidwell 11 Apr 2001 
6
 
7
// Bug 1844. We can meet types in cp_tree_equal via a template-id-expr.
8
 
9
typedef int *Ptr;
10
 
11
template struct B
12
{
13
  typedef typename T::template X type;
14
  typedef typename T::template X type2;
15
  typedef typename T::template X type3;
16
 
17
  void foo (type);
18
  void baz (type2);
19
 
20
};
21
 
22
template void B::foo (type)
23
{
24
}
25
template void B::baz (type3)
26
{
27
}

powered by: WebSVN 2.1.0

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