Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.dg / opt / pr18683-1.C
blob847a4d3c667af29857b288c80a3e0f67be4a0f22
1 // PR middle-end/18683
2 // { dg-do compile }
3 // { dg-options "-O0" }
5 template<typename _CharT>
6 struct basic_ostream
8   basic_ostream& operator<<(int __n);
9 };
11 extern basic_ostream<char>  cout;
13 template<int> struct linear_congruential
15   template<class CharT>
16   friend basic_ostream<CharT>&
17   operator<<(basic_ostream<CharT>& os,
18              const linear_congruential& lcg)
19   {
20     return os << 1;
21   }
24 void instantiate_all()
26   linear_congruential<0> lcf;
27   cout << lcf;