(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp0x/
pr50901.C
// { dg-do compile { target c++11 } }

template<class T> int foo(int a)
{
  const unsigned b = a < 0 ? -a : a;
  return 0;
}

int i = foo<float>(1);