Fix PR c++/69139 (deduction failure with trailing return type)
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr50901.C
blobde82435a43969dae4a173721a65ec62ffc038cf8
1 // { dg-do compile { target c++11 } }
3 template<class T> int foo(int a)
5   const unsigned b = a < 0 ? -a : a;
6   return 0;
9 int i = foo<float>(1);