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.0rc4/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [typename24.C] - Blame information for rev 519

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// Origin: Mark Mitchell 
3
 
4
class ostream;
5
 
6
extern ostream& cout;
7
 
8
class Foo { };
9
 
10
ostream &operator<<(ostream &os, const Foo &)
11
{
12
  return os;
13
}
14
 
15
template
16
const typename T::fooz &operator<<(const Foo &, const T &t)
17
{
18
  return t;
19
}
20
 
21
int main()
22
{
23
  Foo foo;
24
 
25
  cout << foo;
26
}

powered by: WebSVN 2.1.0

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