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++.law/] [arg8.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// GROUPS passed arg-matching
3
// arg-matching file
4
// Message-Id: <9307081747.AA14030@tnt>
5
// From: mclaugh@tnt.acsys.com (Mark A. McLaughlin)
6
// Subject: g++ bug
7
// Date: Thu, 8 Jul 93 11:47:28 MDT
8
 
9
 
10
#include 
11
#include 
12
 
13
// With this declaration the program will not link.
14
template  std::ostream & save(std::ostream & os, Type T);
15
 
16
   template  std::ostream &
17
save(std::ostream & os, Type T) {
18
   return os << T;
19
}  // save
20
 
21
   int
22
main() {
23
   int i = 10;
24
   save((std::ostream &)std::cout, i) << std::endl;
25
   short int s = 5;
26
   save((std::ostream &)std::cout, s) << std::endl;
27
   std::printf ("PASS\n");
28
}  // main

powered by: WebSVN 2.1.0

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