1// { 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 <iostream>
11#include <cstdio>
12
13// With this declaration the program will not link.
14template <class Type> std::ostream & save(std::ostream & os, Type T);
15
16   template <class Type> std::ostream &
17save(std::ostream & os, Type T) {
18   return os << T;
19}  // save
20
21   int
22main() {
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
29