Merge from mainline.
[official-gcc.git] / gcc / testsuite / g++.dg / template / cond3.C
blob788b3754a61e2f654149670b6716c31126752d91
1 // PR c++/13833
3 struct X { 
4   template <typename T> 
5   X & operator << (const T &t); 
6   X & operator<< (int& (*p) (int&)); 
7 }; 
8  
9 X x; 
11 template <int> void foo () { 
12   x << (1 ? "ok" : "failed"); 
13
15 template void foo<1>();