Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.jason / template24.C
blob0efce9ff12ec166b0ad993cf297a232388208b63
1 // { dg-do run  }
2 // Bug: g++ doesn't find the conversion from ostream_withassign to ostream.
4 #include <iostream>
6 template <class T>
7 struct A {
8   T t;
9 };
11 template <class T>
12 std::ostream & operator<< (std::ostream & os, A<T> & a)
14   os << a.t;
15   return os;
18 int main ()
20   A<int> a = { 1 };
21   std::cout << a << std::endl;